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
Sharepoint can't send mails from custom workflows
Outlook select a specific folder using code
Installing Forefront Threat Management Gateway on SBS 2008 domain controller
hotmail is blocking IP
send sms from access to a mobile
To know 31st working date from the date entered
How to unlock MS Access files
Internet Security 2010 removal
Script that displays all devices in Active Directory
Need to sync a Blackberry 9000 with Outlook. The Blackberry has several old contacts in it that need to be deleted. How do I make it so that only the Outlook contacts replace all the Blackberry contac