Example: Simple Recollect Statistics Request Using the THRESHOLD Option - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

The following request collects statistics on the multicolumn set (o_orderstatus, o_orderkey) for the first time. Because of the FOR CURRENT option, the database does not store the THRESHOLD setting.

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