November 2003
Intermediate to advanced
816 pages
14h 53m
English
The CASE and COALESCE expressions give capabilities for decision-making similar to multi-way branching statements in some 3GLs. They each return a single value based on the input(s).
There are two forms of syntax for the CASE expression.
CASE input-expression WHEN match-expression THEN result
[ WHEN match-expression THEN result ]
...
[ELSE result]
CASE WHEN Boolean-condition THEN result
[ WHEN Boolean-condition THEN result ]
...
[ELSE result2]
Note: An expression written using the first form could be rewritten using the second form by explicitly stating the WHEN condition for each value: ...
Read now
Unlock full access