Mysql
 sql >> Base de données >  >> RDS >> Mysql

Les 3 meilleures notes - MySQL

SELECT name, score
FROM SCORES
JOIN (SELECT distinct score score3
      FROM scores
      ORDER BY score DESC
      LIMIT 2, 1) x
ON score >= score3
ORDER by score DESC

FIDDLE