Microsoft
Software
Hardware
Network
Question : Setting the "Order by" Order
Hello all,
I have a MS SQL query where I am ordering by a string field called 'length'
Order by length acs
1 Year
2 Years
3 Years
5 Years
6 Month
7 Years
I will need to have the order by displaying '6 Month' first.
6 Month
1 Year
2 Years
3 Years
5 Years
7 Years
How can I accomplish this?
Answer : Setting the "Order by" Order
order by case when [length] like '% month%' then 0 else 1 end asc, [length] asc
Random Solutions
How do I force a '0' value into a report
Exchange 2007 - Transport Rule
Speeding up a SQL Server 2008 Database?
How can I stop access form window icon populating task bar
Microsoft, Sharepoint Redirect user to subsite at logon
Printing to LPT2
IE7 ! Error On Page and/or ! Done
Certificate for WPF application
Windows cardspace has stoppped working
How to hyperlink a database of 1000's of Fedex tracking numbers to their own tracking Fedex webpage for beginner?