U kunt case gebruiken om complexere bestellingen te maken:
select *
from @temp
order by case when Role = 3 then 0 else 1 end, Role, Name
U kunt case gebruiken om complexere bestellingen te maken:
select *
from @temp
order by case when Role = 3 then 0 else 1 end, Role, Name