16.20 - Example: SHOW TABLE with a Derived Period Column - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Syntax and Examples

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-24
dita:mapPath
wkf1512081455740.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

This is an example of SHOW TABLE output for the following table definition which includes a derived period column.

CREATE TABLE employee (
	eid INTEGER NOT NULL,
	name VARCHAR(100) NOT NULL,
	deptno INTEGER NOT NULL,
	jobstart DATE NOT NULL,
	jobend DATE NOT NULL,
	PERIOD FOR jobduration (jobstart, jobend)
) PRIMARY INDEX(eid);

Below is the SHOW TABLE output.

CREATE SET TABLE TEST.employee ,NO FALLBACK ,
NO BEFORE JOURNAL,
NO AFTER JOURNAL,
CHECKSUM = DEFAULT,
DEFAULT MERGEBLOCKRATIO
MAP = TD_MAP1
(
eid INTEGER NOT NULL,
name VARCHAR(100) NOT NULL,
deptno INTEGER NOT NULL,
jobstart DATE NOT NULL,
jobend DATE NOT NULL,
PERIOD FOR jobduration (jobstart, jobend)
) PRIMARY INDEX(eid);