DENSE_RANK

functionsupportedCore SQL functions

docs.snowflake.com ↗

Window function syntax and usage

Returns the rank of a value within a group of values, without gaps in the ranks. The rank value starts at 1 and continues up sequentially. If two values are the same, they have the same rank.

Syntax

supportedpartialnot supportednot scored

DENSE_RANK() OVER ( [ PARTITION BY <expr1> ]
  ORDER BY <expr2> [ { ASC | DESC } ] [ NULLS { FIRST | LAST } ] [ <window_frame> ] )

Usage notes