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

SQL Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
zsn1556242031050.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1143
lifecycle
previous
Product Category
Teradata Vantage™

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%