Example: Using FORMAT as Part of Derived Expression

Teradata Vantageā„¢ Data Types and Literals

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

You can use FORMAT as part of a derived expression. To determine the percent increase if employee 10019 is given a $1000 raise:

SELECT (1000/salary)*100 (FORMAT 'zz9%')
   (TITLE 'Percent Incr')
   FROM employee
   WHERE empno = 10019 ;
   
Percent Incr
------------
          3%