IF

Translation reference to convert Teradata IF statement to Snowflake Scripting

Description

Provides conditional execution based on the truth value of a condition.

For more information regarding Teradata IF, check here.

IF conditional_expression THEN
     statement
     [ statement ]... 
[ ELSEIF conditional_expression THEN
     statement
     [ statement ]... ]...
[ ELSE   
     statement
     [ statement ]... ]
END IF;

Sample Source Patterns

Sample auxiliar table

CREATE TABLE if_table(col1 varchar(30));

Possible IF variations

Teradata

Snowflake Scripting

Known issues

No issues were found.

No related EWIs.

Last updated

Was this helpful?