View Single Post
Old 11-08-2008, 01:44 PM   #8 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by Tanax View Post
So.. you don't want to post what you've done so far?
sql Code:
SELECT id, MAX(rid) AS toprating FROM `ratings`
GROUP BY id

Since i don't really have something "so far". I made this example. I hope this is a good example. ;P


The problem is, if I have an average of for example 4 "5" ratings, while as theres 2 "1" ratings.. It usually returns the 1 rating. But you have more "5" ratings.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote