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
IntoPath-How to populate a non-repeating field with a repeating field value on a condition
An updateble datagridview in a a Winforms application
Tivoli Storage Manager Backup Archive Client App Crash DSM.EXE after installing on Windows Server 2008 R2 64 bit
Exchange 2010 ports - What firewall ports need to be open
Exporting Access Query to an Excel Spreadsheet
sql : mm-yy from date time stamp
two servers on one internet connection
How to create Access Check Box Pick List Form
net send
Excel - formula to calculate values on an offset array