16.20 - Collecting Statistics on a PERIOD Data Type Column - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Detailed Topics

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1184-162K
Language
English (United States)

You can collect statistics on the BEGIN and END bound functions of PERIOD type columns, for example,

COLLECT STATISTICS COLUMN BEGIN(Policy_Duration)
                                AS Stats_BegDuration,
                   COLUMN END(Policy_Duration) AS Stats_EndDuration
ON policy_types;