Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
Low
Description
The ISO/IEC 9075-2:1999 SQL standard describes two kinds of CASE expressions: "simple case" and "searched case".
The current Derby version supports "searched case" but not "simple case".
The syntax for "simple case" is:
CASE Expression
WHEN Expression THEN Expression
[ WHEN Expression THEN Expression ]
...
ELSE ElseExpression
END
Example:
VALUES
CASE 4
WHEN 1 THEN 'one'
WHEN 2 THEN 'two'
WHEN 3 THEN 'three'
ELSE 'many'
END
Attachments
Attachments
Issue Links
- incorporates
-
DERBY-6581 Document simple case syntax
- Closed
- is related to
-
DERBY-6569 NULLIF may return incorrect results if first operand calls non-deterministic function
- Closed