Skip to content
Advertisement

First rows for selected cid then show the others rows

I have orders table like this:

I want to see all the orders of cid 2 first then all the others thanks …

Advertisement

Answer

You may order using a CASE expression:

You may also add more sorting levels after the above CASE expression.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement