CASE
Translation reference for CASE statements
Description
The
CASEstatement chooses from a sequence of conditions and runs a corresponding statement. For more information regarding Oracle CASE, check here.
Simple case
[ <<label>> ] CASE case_operand
WHEN boolean_expression THEN statement ;
[ WHEN boolean_expression THEN statement ; ]...
[ ELSE statement [ statement ]... ;
END CASE [ label ] ;CASE ( <expression_to_match> )
WHEN <expression> THEN
<statement>;
[ <statement>; ... ]
[ WHEN ... ]
[ ELSE
<statement>;
[ <statement>; ... ]
]
END [ CASE ] ;Searched case
Sample Source Patterns
Sample auxiliar table
Simple Case
Oracle
Snowflake Scripting
Searched Case
Oracle
Snowflake Scripting
Known issues
1. Labels are not supported in Snowflake Scripting CASE syntax
The labels are commented out or removed depending on their position.
Related EWIS
No related EWIs.
Last updated
Was this helpful?