A quiz leaderboard awards medal levels: highest score is level 1, and people with the same score share a level. Unlike sports standings there should be no gaps: after two people tie for level 2 the next score is level 3, not 4.
Write a query returning name, score and the level as score_rank, using DENSE_RANK().
name, score, score_rankscore_rank 1DENSE_RANK() OVER (ORDER BY score DESC)
RANK() would leave a gap after a tie; DENSE_RANK() does not.
No results yet
Run your code to check it against the examples, or submit to run every test.