Rank Scores

Read editorial.

1
2
3
4
5
6
7
8
SELECT
  S.score,
  DENSE_RANK() OVER (
    ORDER BY
      S.score DESC
  ) AS 'rank'
FROM
  Scores S;