DENSE_RANK
Assigns places with ties, but without gaps: 1, 2, 2, 3.
Syntax
DENSE_RANK() OVER (ORDER BY <sort key>)
DENSE_RANK() OVER (PARTITION BY <group> ORDER BY <sort key>)
Equal values share a place, and the next value gets the next number, with no gap. Handy when it's the levels of values that matter: the highest salary, the second highest, the third.