📜  如何使用mysql代码示例在最短的时间内获取最高分

📅  最后修改于: 2022-03-11 15:05:06.584000             🧑  作者: Mango

代码示例1
SELECT gameid, 
       MIN(date) AS FirstTime, 
       MAX(date) AS LastTime,
       MAX(score) AS TOPscore.
       COUNT(*)  AS NbOfTimesPlayed 
FROM highscores
WHERE userid='2345' 
GROUP BY gameid
-- ORDER BY COUNT(*) DESC -- for ex. to have games played most at top