ORDER BY Question (1 Viewer)

DrZoidberg

Registered User.
Local time
Today, 13:21
Joined
Jan 12, 2005
Messages
14
Hi, is there any way to do an order by, but specify that a particular value is listed last, or first.

E.g. ORDER BY t_name ASC ... but feature Simon first and not with the other names beginning with 'S'

Thanks.
 

ejstefl

Registered User.
Local time
Today, 13:21
Joined
Jan 28, 2002
Messages
378
The only way I can think of to do this would be to set up another field on your table. Name it SortOrder or something like that. Then you can put either letters or numbers in this field at the records you want to display first. Then, sort by the new field first, then the name field.
 
Last edited:

DrZoidberg

Registered User.
Local time
Today, 13:21
Joined
Jan 12, 2005
Messages
14
Ok, thanks!
 

Users who are viewing this thread

Top Bottom