16.20 - Example: A Simple Recollect Statistics Request Using the THRESHOLD Option - 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

The following request collects statistics on the multicolumn set (o_orderstatus, o_orderkey) for the first time and specifies the FOR CURRENT option. Teradata Database collects the requested statistics, but because of the FOR CURRENT specification, it does not store the THRESHOLD setting nor does it store the default threshold options from the DBSControl fields DefaultUserChangeThreshold and SysChangeThresholdOption.

     COLLECT STATISTICS
     USING SYSTEM THRESHOLD FOR CURRENT
     COLUMN (o_orderstatus, o_orderkey)
     ON orders;