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.
Author |
Topic |
asifbhura
Posting Yak Master
165 Posts |
Posted - 2010-01-18 : 05:27:06
|
hi,I have table named with employeeIt contains employee name field.which is having some records likeEmpNameAsifJohnBurhanMackSimaJosephnow I want to order by name but the first records must be Asifthen it must be ordered by DESC or ASClikeempNameAsifBurhanJohnJosephMackSimaRegards,ASIF |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-01-18 : 05:29:49
|
order by case when empname='Asif' then 0 else 1 end, empnameMadhivananFailing to plan is Planning to fail |
|
|
|
|
|