16.20.16.20 - 16.20 - Example: Creating a Temporary Named Column - Teradata Vantage NewSQL Engine

Teradata Vantageā„¢ Data Types and Literals

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

This syntax creates a temporary named column and uses it in a WHERE clause.

SELECT Name,((Salary + (YrsExp * 200))/12) AS Projection
FROM Employee
WHERE DeptNo = 600
AND Projection < 2500;