16.10 - Example: Using FORMAT as Part of Derived Expression - Teradata Database

Teradata Database SQL Data Types and Literals

prodname
Teradata Database
vrm_release
16.10
created_date
June 2017
category
Programming Reference
featnum
B035-1143-161K

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%