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
Make MFC app invisible on startup (Hide main dialog)
I am trying to add an edit, delete function to an existing gridview
WSUS - Missing update icon to apply updates
How do I create a list that automaticly resizes to fit the content?
vb.net - if string
Outlook folders mysteriously missing
How to open document in Flash Drive from Silverlight Application in drive
I get a error message when I reference a dll file to my C# Window application
fill datagrid based on drop down box values
SQL Query