A dense_rank fn is similar to Rank fn except for a difference that it does not skip sequential ranking numbers. If two values are the same and have same rank for ex. 3, then in dense_rank fn the next non duplicate value will be ranked 4. In normal Rank fn, the next non duplicate value would have been ranked 5 .
Rank Function can cause non-consecutive rankings if the tested values are the same. Whereas, the dense_rank function will always result in consecutive rankings.
In the above example you can see that in the dense_rank function if there is a tie then the next position will be skipped and in the rank function the count start from the next position.
What is dense_rank function and it's usage ?
Profile Answers by ddkdhar Questions by ddkdhar
Questions by ddkdhar answers by ddkdhar