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
Can Windows Server be setup to Send a Trap if a Specified Process Dies?
How to set focus to a textbox in WPF
DDE from MSAccess to MSExcel
I have this function, but unable to put results on the form
how to exclude one of the table during imp/exp?
Accessing Notes Items in Domino with VB.NET
MSAccess - Remove all forms & tables using VB?
I get a blue screen when I boot my Windows Server 2008
thread to simulate several executions
SRVANY where to download the most recent version?