DEV Community

baris
baris

Posted on

Answer: SQL Order By Case When

Good to know.

You could use something like this:

ORDER BY CASE WHEN name = 'NAME UNKNOWN' THEN 2 ELSE 1 END, name

Top comments (0)