MySQL Forums
Forum List  »  Newbie

Re: order by before distinct.
Posted by: Shantanu Oak
Date: April 17, 2005 06:54AM

select SHOE_TYPE_ID, max(DATE_SHOE_MADE) as mymax
from shoe_table
group by SHOE_TYPE_ID
order by mymax desc

Options: ReplyQuote


Subject
Written By
Posted
April 15, 2005 06:51PM
Re: order by before distinct.
April 17, 2005 06:54AM


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.