MySQL Forums
Forum List  »  Newbie

Re: sql query syntax
Posted by: Jay Pipes
Date: July 12, 2005 06:37PM

4.1 to use subqueries.

You can redo your query like so, however to find the max score:

select sum(scores) AS scores, player from gametable group by player order by scores desc limit 1;

Jay Pipes
Community Relations Manager, North America, MySQL Inc.

Got Cluster? http://www.mysql.com/cluster
Personal: http://jpipes.com

Options: ReplyQuote


Subject
Written By
Posted
July 12, 2005 02:48PM
July 12, 2005 06:29PM
Re: sql query syntax
July 12, 2005 06:37PM
July 12, 2005 06:45PM


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.