17.10 - Collecting Statistics on a PERIOD Data Type Column - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Detailed Topics

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1184-171K
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;