MySQL Forums
Forum List  »  Newbie

Unsure about query... random column?
Posted by: Go Level
Date: February 21, 2009 04:38PM

I have an arcade table with columns:

`username`,`gamename`,`score`

To get the highscores for each of the games, I run this query:

SELECT `username`,`gamename`,MAX(score) FROM `arcade_highscores` GROUP BY `gamename`

It returns the proper highest score for each game, but the username seems to be completely random. Any ideas?

Options: ReplyQuote


Subject
Written By
Posted
Unsure about query... random column?
February 21, 2009 04:38PM


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.