Example

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

brand
Software
Teradata Vantage
prodname
Teradata Database
Teradata Vantage NewSQL Engine
vrm_release
16.20
category
Programming Reference
featnum
B035-1145-162K

The following statement uses the ANY quantifier to retrieve every row from the Project table, which contains either the Accounts Payable or the Accounts Receivable project code:

   SELECT * FROM Project 
   WHERE Proj_Id LIKE ANY 
    (SELECT Proj_Id 
     FROM Charges
     WHERE Proj_Id LIKE ANY ('A%')) ;