Valued CASE Expression Syntax | Teradata Vantage - Valued CASE Expression Syntax - Analytics Database - Teradata Vantage

SQL Functions, Expressions, and Predicates

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-01-12
dita:mapPath
obm1628111499646.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
kby1472250656485
lifecycle
latest
Product Category
Teradata Vantageā„¢
CASE value_expression_1 when_clause [...] [ ELSE scalar_expression_m ] END

Syntax Elements

value_expression_1
An expression whose value is tested for equality with value_expression_n.
when_clause
WHEN value_expression_n THEN scalar_expression_n
scalar_expression_m
An expression whose value is returned if evaluation falls through to the ELSE clause.
value_expression_n
A set of expressions against which the value for value_expression_1 is tested for equality.
scalar_expression_n
An expression whose value is returned on the first equality comparison of value_expression_1 and value_expression_n.