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
Infopath Multiple-Selection List Box: linked to access and list populated from Access table
Is there a way to export a SharePoint group to an excel file?
MS Access- populating first record on a form
Receiving error when submitting data to SQL Server through asp.net vb
Hibernate Mapping - Stored Proc result from multiple tables
Need help with exisiting code. reading attachments and save to MS Access
Recovery disk No.2 needed for a Sony Vaio PCG-FR102/FR105
Active Directory Planing
Reversing cross tab
CommonDialog Question