CASE Syntax Elements - Teradata Vantage - Analytics Database

SQL Stored Procedures and Embedded SQL

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2023-10-30
dita:mapPath
frc1628111662093.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
rjx1472253414573
lifecycle
latest
Product Category
Teradata Vantageā„¢
operand_1
operand_2
Value expressions or arithmetic and string expressions.
You can specify stored procedure local variables, status variables, IN or INOUT parameters, literals, and FOR loop column and correlation names in the value expression.
OUT parameters and subqueries are not allowed.
The data type of operand_1 and operand_2 must be compatible with each other.
statement
Any of the following:
  • DML, DDL or DCL statement that can be used in a stored procedure. These include dynamic SQL statements.
  • control statements, including BEGIN END.
conditional_expression
A boolean condition used to determine whether a statement or statements in the THEN clause should be executed.
You can specify stored procedure local variables, status variables, IN or INOUT parameters, literals, and FOR loop column and correlation names in the conditional_expression.
OUT parameters and subqueries are not allowed.
You cannot use IN and NOT IN operators if the conditional list contains any local variables, parameters, or cursor aliases.