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
iis forbiden access - cannot find incorect host header
Where Can I find a online free VBA manual?
Find Number Closest to Zero in Excel
How to show detail on summary report that is pulled into another report (sub-report)
DAO Recordset issue Access 2007 VBA
Error While Processing an Application in SAP BPC with SQL 2008 on backend.
VBA Variable as DLookup Criteria
Convert Access 95/97 to Access 2000 MDE
Moving public folders from Exchange 2007 to Exchange 2003 - Different Organisations
Access, non-print a null field.