MySQL Forums
Forum List  »  Perl

Re: Problem with Order By and Group By
Posted by: Paulo Renato
Date: April 02, 2006 08:31PM

SELECT AVG(rating) as average
FROM ratings
WHERE db = 'maps'
GROUP BY db,ID_item
HAVING AVG(rating)
ORDER BY AVG(rating) ASC



Edited 2 time(s). Last edit at 04/02/2006 08:32PM by Yusuke Urameshi.

Options: ReplyQuote


Subject
Written By
Posted
Re: Problem with Order By and Group By
April 02, 2006 08:31PM


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.