Example: Using FORMAT to Change the Format of Returned Data

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

Reconfigure the format of data returned:

SELECT empno (FORMAT '99-999'), name, deptno
FROM employee;

The system returns:

EmpNo       Name             DeptNo
------      ----------       ------
10-021      Smith T             700
10-007      Aguilar J           600
10-018      Russell S           300
10-011      Chin M              100