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
Error 1327 Invalid Drive - installing applications - "Documents" on network drive - offline file sycn
Windows 7 Partition
Drop all Indexes
access 2003 report with calculated field.
MS Access 2007 Customize Office Menu Button
Microsoft Excel and PowerPoint 2003 print with no left margin
MSSQLSERVER unhandled exception 80000003, Error: 17311, Severity: 16, State: 1, SQL 2005, Windows 2008
Force user account picture w/Group Policy
Office 2007 can't save to network share.
Setting properties with MS Access 2002 MSGraph.Chart.8