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
Why does Excel 2003 crash intermittently when this line is run?
How Do I Make the Choices in One Access Form ComboBox Contingent upon a Choice in Another?
Where does XPS driver print or save the file to and what extention
ASP.Net page slow to load large dropdown list
Access2003: working with mouse wheel
How Can I Detect, Delete, and Add A Printer In Windows XP using Visual Basic, C#, or C++
Shutdown VM in ESXi 4.0 when connected to a smart ups 1000
Using TSADMIN.msc is there a way to tell which user is at a desktop, which is using remote app?
problem of do while loop iin foxpro
Keeping Look Ups in a Make Tabel Query