MySQL Forums
Forum List  »  Newbie

Re: How do I sort data according to two fields (combined) with one query?
Posted by: pearsojd
Date: August 20, 2004 09:53AM

Hi,

Example;

select * from mytable
where date1 > '2002-01-01' and date2 < '2004-01-01'
order by date 1;

Hope you get the idea.

James

Options: ReplyQuote


Subject
Written By
Posted
Re: How do I sort data according to two fields (combined) with one query?
August 20, 2004 09:53AM


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.