IF

Translation reference to convert Teradata IF statement to Snowflake Scripting

Some parts in the output code are omitted for clarity reasons.

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

Possible IF variations

Teradata

Snowflake Scripting

Last updated