MySQL Forums
Forum List  »  Newbie

Re: ORDER BY TWO COLUMNS
Posted by: Tom Melly
Date: August 28, 2009 04:43AM

This sounds insane - however, assuming your description of what you want is correct, you could try:
select t1.col1, t2.col2 from test3 t1 left join test3 t2 on t1.col1 = t2.col2 order by t1.col1;

Options: ReplyQuote


Subject
Written By
Posted
August 27, 2009 09:30PM
August 28, 2009 03:31AM
Re: ORDER BY TWO COLUMNS
August 28, 2009 04:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.