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
Does SqlServer support Cascade delete?
Setup POP3 on Exchange 2007 / SBS 2008 Server
SQL DISTINCT Problem
Format Date
Access - SQL Trim Inner Join
Multiple XAP files in same clientbin?
Need SQL Syntax help to make my qry more efficient.
2007 - Text fields imported from Excel have a format property of '@'
Microsoft Great Plains Dynamics 10.0 Trial Download???
Coefficient of Correlation in pivot table