MySQL Forums
Forum List  »  Newbie

order by max of two columns
Posted by: Tobias Schützer
Date: September 06, 2004 08:46AM

Hi!

I wonder how I can get a query to be ordered by the maximum value out of 2 columns.

select column1,column2 from tbl order by ? (max of column1,columt2)

Any suggestions?

Options: ReplyQuote


Subject
Written By
Posted
order by max of two columns
September 06, 2004 08:46AM


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.