ROW_NUMBER
Window Function
Description
The ROW_NUMBER window function assigns an ordinal number of the current row within a group of rows, counting from 1, based on the ORDER BY expression in the OVER clause. (RedShift SQL Language Reference ROW_NUMBER window function)
Grammar Syntax
This function is fully supported in Snowflake.
The ORDER BY
clause is mandatory in Snowflake. In case it doesn't exist, an ORDER BY 1
will be added in order to ensure full equivalence.
For more information about quoted identifiers in functions, click here.
Sample Source Patterns
Setup data
Input Code:
IN -> Redshift_01.sql
Output Code:
OUT -> Redshift_01.sql
Known Issues
No issues were found.
Related EWIs
There are no known issues.
Last updated