Example: Searching for Atlanta Employees

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 searches for the names of all employees who work in Atlanta.

   SELECT Name 
   FROM Employee 
   WHERE DeptNo IN
    (SELECT DeptNo 
     FROM Department 
     WHERE Loc = 'ATL');