I have data in myTable1 like the above.Code:
data in myTable1
Because (3) Jack is a kind of sticky, I like to make jack comes first or last.
The following would-be code is one of my trials.
But it seems to be not work as I want.
would be code
select id, name, CASE WHEN id = '3' THEN 1 ELSE 2 END AS ORDER_KEY
order by ORDER_KEY, id