Examples: Predicates - 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
Predicate Description
SELECT *FROM Employee
WHERE Salary < 40000;
Predicate in a WHERE clause specifying a condition for selecting rows from the Employee table.
SELECT SUM(CASE
  WHEN part BETWEEN 100 AND 199
  THEN 0
  ELSE cost
  END)
FROM Orders;
Predicate in a CASE expression specifying a condition that determines the value passed to the SUM function for a row in the Orders table.