MySQL Forums :: Newbie :: Unsure about query... random column?


Advanced Search

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? Go Level 02/21/2009 04:38PM
Re: Unsure about query... random column? Guelphdad Lake 02/21/2009 05:06PM
Re: Unsure about query... random column? Go Level 02/21/2009 05:35PM
Re: Unsure about query... random column? Rick James 02/21/2009 10:42PM


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.