Mysql
 sql >> Base de Dados >  >> RDS >> Mysql

3 melhores pontuações - 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