What does DENSE_RANK() return for tied rows compared to RANK()?

SQL Data Analyst Medium

SQL Data Analyst — Medium

What does DENSE_RANK() return for tied rows compared to RANK()?

Key points

  • DENSE_RANK() handles tied rows differently than RANK()
  • Tied rows receive the same rank value
  • Subsequent rank numbers are not skipped
  • Useful for scenarios where you want to maintain ranking order

Ready to go further?

Related questions