Teradata Database Message 3771 - 3771 - Analytics Database - Teradata Vantage
Teradata® VantageCloud Lake - Analytics Database Messages
- Edition
- Lake
- Product
- Analytics Database
- Teradata Vantage
- Published
- October 2022
- Language
- English (United States)
- Last Update
- 2024-02-26
- dita:mapPath
- tzr1629746512312.ditamap
- dita:ditavalPath
- ft:empty
- dita:id
- vza1585613049811
- lifecycle
- latest
- Product Category
- Teradata® Vantage™
- Message
- Illegal expression in WHEN clause of CASE expression.
- Explanation
- There are 3 auses of this error are: a) a boolean is specified in a WHEN clause for a simple CASE expression, Example: SEL CASE t.x WHEN 1=1 THEN t.x ELSE t.y END FROM t; b) a simple expression is specified in a WHEN clause for a conditional CASE expression, Example: SEL CASE WHEN 1+1 THEN t.x ELSE t.y FROM t; c) an embedded SELECT is found in the WHEN clause
- Generated By
- GNCEVL.
- For Whom
- The end user.
- Notes
- None
- Remedy
- Correct and re-submit SQL query.