Examples | TITLE Phrase | Teradata Vantage - 17.10 - Example: Using the TITLE Phrase - 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)

The following example shows a simple use of the TITLE phrase.

CREATE TABLE Charges,
FALLBACK
 (EmpNo SMALLINT FORMAT '9(5)' TITLE 'Employee//Id' BETWEEN 10001 AND 32001 NOT NULL,
  Proj_Id CHAR(8) TITLE 'Project//  Id' NOT NULL,
  WkEnd DATE FORMAT 'YYYY/MM/DD' TITLE 'Week//Ending',
  Hours DECIMAL(4,1) FORMAT 'ZZ9.9' BETWEEN 0.5 AND 999.5)
PRIMARY INDEX (EmpNo, Proj_Id)
INDEX (Proj_Id);