Jump to content

Select from db Order by name (but with one exception)


deansatch

Recommended Posts

I have my db and fetch theresults in alphabetical order using "select * from table order by name" but I need on of the entries to be next to another as a one-off exception.

e.g

 

Alfred

Bob

Malcolm  <---the odd one

Edward

Frank

George

Larry

Kyle

Morris

Norris

 

Is there any way of doing this without creating an 'order' column and assigning numbers to every entry?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.