There is no way to do it with pure SQL alone.

Dominic

Well actually you can do in pure SQL.  SQL has code that can be used to create 
dynamic columns and values on the fly in your record set and then one can order 
on this set.  It sort of depends on whether the desire order is permanent or 
flexible.  I.E. sometimes one wants 'Harvard', 'Princeton' and 'Dartmouth' and 
another time one wants 'Princeton', 'Dartmouth' and 'Harvard'.


SELECT
  CASE college
     WHEN 'Harvard' THEN 1
     WHEN 'Princeton' THEN 2
     WHEN 'Dartmouth' THEN 3
  END AS sortCol

FROM aTable

ORDER BY sortCol

The exact syntax can very from database to database management system.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:297460
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to