Problems / Rank with Ties / Editorial
This problem highlights the difference between RANK() and DENSE_RANK():
RANK()
DENSE_RANK()
Both use the same window: PARTITION BY subject ORDER BY score DESC. The data intentionally contains ties so the output clearly shows the difference.
PARTITION BY subject ORDER BY score DESC
Solve Rank with Ties yourself →