CASE Syntax Elements - Advanced SQL Engine - Teradata Database

SQL Stored Procedures and Embedded SQL

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-28
dita:mapPath
vqj1592443206677.ditamap
dita:ditavalPath
vqj1592443206677.ditaval
dita:id
B035-1148
lifecycle
previous
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.