SQL Data Analyst — Hard
Key points
- RANK() creates gaps in the ranking sequence
- DENSE_RANK() assigns consecutive ranks to tied values
- The key difference lies in how they handle tied values
- RANK() is not sequential in assigning ranks
- DENSE_RANK() ensures a continuous ranking sequence
Ready to go further?
Related questions
