Mysql
 sql >> Datenbank >  >> RDS >> Mysql

Top-3-Ergebnisse – 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