SELECT
  s1.score Score,
  COUNT(DISTINCT s2.score) Rank
FROM
  Scores s1
  INNER JOIN Scores s2
    ON s1.score <= s2.score
GROUP BY
  s1.id
ORDER BY
  s1.score DESC
;

Create : 178 Rank Scores
Create : 178 Rank Scores
