Coalesce simply returns the first non-null value. Like MS SQL's isnull, but it can take more arguments.
~Brad -----Original Message----- From: Les Mizzell [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 19, 2007 12:15 PM To: CF-Talk Subject: Re: cfquery "order by" question > Use something like > ORDER BY COALESCE(sortORD,9999) ASC, #getPAGE.sortMETH# Ooo - that works. Actually, I'll admit to having never seen "coalesce" before. Thanks very much! That eliminates something far more convoluted! Les ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:295115 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

