Skip to main content
Returns a unique row number for each row within the requested window. For more information on usage, please refer to Window Functions.

Syntax

Parameters

Return Type

INTEGER

Example

In this example, players in each game level are assigned a unique player ID using ROW_NUMBER.

Rows: 4Execution time: 5.33ms