PostgreSQL · Function
dense_rank
dense_rank() gives the same rank to tied rows and increases the rank for each new peer group. Unlike rank(), it leaves no gaps.
Last updated
Syntax
dense_rank() → bigintIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
rankrow_numberpercent_rankcume_distOVERPARTITION BYORDER BY