RANK
Translation specification for the transformation of the RANK() function
Description
RANK sorts a result set and identifies the numeric rank of each row in the result. The only argument for RANK is the sort column or columns, and the function returns an integer that represents the rank of each row in the result. (RANK in Teradata)
Teradata syntax
Snowflake syntax
Sample Source Pattern
Setup data
Teradata
IN -> Teradata_01.sql
Snowflake
OUT -> Teradata_01.sql
RANK() using ASC, DESC, and DEFAULT order
Teradata
Notice that Teradata's ordering default value when calling RANK() is DESC. However, the default in Snowflake is ASC. Thus, DESC is added in the conversion of RANK() when no order is specified.
IN -> Teradata_02.sql
Snowflake
OUT -> Teradata_02.sql
Known Issues
No issues were found.
Related EWIs
No related EWIs.
Last updated