Skip to main content
Rank the current row within the requested window. For more information on usage, please refer to Window Functions.

Syntax

Parameters

Return Types

Same as input type

Example

In this example, players are ranked by their high score within each game level. Unlike RANK, DENSE_RANK assigns consecutive ranks with no gaps — players with equal scores share the same rank and the next rank is incremented by one.

Rows: 4Execution time: 2.03ms