17.10 - Example: Using FORMAT as Part of Derived Expression - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1143-171K
Language
English (United States)

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%