I have a 100ish row lookup table that I'm using to generate a vertical check box list on a web page. Very simple query to get the results:
SELECT servicetype FROM XXX
I want to know if there is a way to ORDER BY the column but have certain known values appear on top of the list out of the sort? Something like (and I don't even know how to write this psuedocode but...)
SELECT servicetype FROM XXX
ORDER BY servicetype ASC
WITH servicetype IN ('Personal', 'Juggling') ON TOP
So that my list would look something like:
Juggling - On top regardless of ORDER BY
Personal - On top regardless of ORDER BY
Anteating - Everything else is ORDER BY
Barflying
Beafeating
Carswatting
etc...
Thanks for the help!