Introduction
RANK and DENSE_RANK help us order data by giving positions to rows based on values, but they handle ties differently.
When you want to list students by their scores and see their positions.
When you want to rank salespeople by sales and handle ties in ranking.
When you want to assign positions to players in a game leaderboard.
When you want to compare products by price and show their rank order.