MySQL Forums
Forum List  »  Newbie

Re: Need help sorting my results
Posted by: piznac
Date: April 22, 2005 04:12PM

Hey thanks mike ---- that worked but now its not grouping right ----

SELECT racer_name,SUM(points) as psum
FROM race_results
WHERE 'class'='gas'
GROUP BY racer_name
ORDER BY psum DESC

Its grouped by racer_name which is just that a name --- and even though the names are the same its not grouping --- ex

Jim smith 45
Jim smith 45

Where it should be = Jim smith 90

Thanks for the help

Options: ReplyQuote


Subject
Written By
Posted
April 21, 2005 08:13PM
Re: Need help sorting my results
April 22, 2005 04:12PM


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.