Teradata Database Message 3771 - 17.10 - 3771 - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Database Messages

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1096-171K
Language
English (United States)
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.