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)

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay