1SELECT gameid,
2 MIN(date) AS FirstTime,
3 MAX(date) AS LastTime,
4 MAX(score) AS TOPscore.
5 COUNT(*) AS NbOfTimesPlayed
6FROM highscores
7WHERE userid='2345'
8GROUP BY gameid
9-- ORDER BY COUNT(*) DESC -- for ex. to have games played most at top
10