NVL
Conditional Function
Description
Returns the value of the first expression that isn't null in a series of expressions. When a non-null value is found, the remaining expressions in the list aren't evaluated. (Redshift SQL Language Reference NVL function)
In RedShift, NVL can contain 2 or more arguments, while in Snowflake NVL function only accepts 2 arguments. In order to emulate the same behavior, NVL with 3 or more arguments is transformed to COALESCE function.
This function is fully supported by Snowflake.
Grammar Syntax
Sample Source Patterns
Input Code:
IN -> Redshift_01.sql
Output Code:
OUT -> Redshift_01.sql
Known Issues
There are no known issues.
Related EWIs
There are no known issues.
Last updated