MySQL Forums
Forum List  »  Newbie

Re: Using MAX() or MIN()
Posted by: Andrew Gilfrin
Date: June 20, 2005 05:02AM

You need to use a subquery like so.

select mov_name from table where mov_popularity in (select max(mov_popularity) from table);

Andrew Gilfrin
------------------
http://gilfster.blogspot.com
My MySQL related Blog

http://www.mysqldevelopment.com
MySQL Stored Procedure,Trigger, View.... (Just about most things these days) Information

Options: ReplyQuote


Subject
Written By
Posted
June 18, 2005 03:00PM
June 18, 2005 06:00PM
June 20, 2005 04:55AM
Re: Using MAX() or MIN()
June 20, 2005 05:02AM
June 20, 2005 10:17AM
June 20, 2005 10:56AM


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.