Try In Selectstaement add DATEPART(dd, Birthdate) AS DayOfBirth"; OrderByStatement = "ORDER BY DayOfBirth"
On 7/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I have a table with the month stored as January, February, > March.....etc. How do I write a query to order by month so that January > is first, Feb second and so on? I'm using SQL server and ColdFusion. > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2 Free Trial http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU Archive: http://www.houseoffusion.com/groups/SQL/message.cfm/messageid:2866 Subscription: http://www.houseoffusion.com/groups/SQL/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.6
