Rules for WHEN Search Conditions - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905
WHEN search conditions have the following properties:
  • Can take the form of any comparison operator, such as LIKE, =, or <>.
  • Can be a quantified predicate, such as ALL or ANY.
  • Can contain a scalar subquery.
  • Can contain joins of two tables.

    For example:

       SELECT CASE 
       WHEN t1.x=t2.x THEN t1.y 
       ELSE t2.y 
       END FROM t1,t2;
       
  • Cannot contain SELECT statements.