MySQL Forums
Forum List  »  Newbie

Need help sorting my results
Posted by: piznac
Date: April 21, 2005 08:13PM

This is the sql Im using in a recordset using dreamweaver

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

Im really new to this but the "SUM" is working fine, but im having a problem with
ORDER By function,...its order by "points" which in my DB is a samllint ---- It just
needs to sort by that number (points) by largest to smallest,...any help would be
great!!

Options: ReplyQuote


Subject
Written By
Posted
Need help sorting my results
April 21, 2005 08:13PM
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.