Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Sorted Query except one particular row

Author  Topic 

deepaish
Starting Member

4 Posts

Posted - 2007-10-23 : 02:06:31
Can anyone help on this
A table is having a list of categories and id, the sorted on the categories ,

but there is record of Others that is to displayed at the end of Query.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-10-23 : 02:09:01
ORDER BY CASE WHEN Category = 'Others' THEN 1 ELSE 0 END, Category



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

deepaish
Starting Member

4 Posts

Posted - 2007-10-24 : 09:47:21
Thanks Peso for solving the query
Go to Top of Page
   

- Advertisement -