dense_rank ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → bigintComputes the rank of the hypothetical row, without gaps; this function effectively counts peer groups.
Functions / Aggregate Functions
dense_rank
Read the PG 18 manualComputes the rank of the hypothetical row, without gaps; this function effectively counts peer groups.
Reading PG 18current·documented in 19 of 27 versions, 8.4 to 20
Signatures & examples
dense_rank () → bigintReturns the rank of the current row, without gaps; this function effectively counts peer groups.
Definition snapshot: b7bd9cda · English manual source