Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

how can i make the code below work in sql server 2012?

$
0
0
SELECT *
FROM Employees
ORDER BY CASE id
WHEN id <1600 THEN 1
WHEN id <1700 THEN 2
WHEN id <2000 THEN 3
END, lastname;

sukai


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>