I know the syntax for using the Rank and Dense Rank functions but I can't find any uses in the real world for this .
For example DENSE_RANK
ranking userid
1 500
1 500
2 502
2 502
and Rank
Ranking UserID
1 500
1 500
1 500
1 500
1 500
1 500
1 500
8 502
8 502
8 502
8 502
8 502
8 502
8 502
15 504
I can't understand how the 1,1 2,2 values would be useful in the real world.
On the other hand, I do understand very clearly what the real-world uses for row_number over partition
are; I just can't find what can I do with this kind of information (dense & regular rank)