16.10 - Example: Using FORMAT to Change the Format of Returned Data - 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

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