Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spesific order 1

Status
Not open for further replies.

graabein

Programmer
Oct 9, 2002
186
NO
Hi all,

I have a problem. I want to select a set of records from a single table and order them with the current user's records first (MAOL) followed by the others sorted alphabetically, i.e. like this..:

tName / tUser

Bill / MAOL
Chuck / MAOL
Jim / MAOL
Lucy / AMSK
Roger / ANFREM
Keith / INHE
Lisa / RABR
Peter / RASA
Kate / SOOYAS

I have tried several times with different combinations of UNION and ORDER BY. All help appreciated.

Regards,
graabein
 
Excellent. Thanks alot! I am not very familiar with the CASE-clause.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top