17.10 - Examples of Predicates - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1145-171K
Language
English (United States)
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 particular row in the Orders table.