Example: Collecting Single-Column PARTITION Statistics - 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 examples collect statistics on the system-derived PARTITION column for the table named table_1.

For the second statement, the system ignores your request for sampled statistics and uses a value of 100 percent, because you cannot collect sampled statistics on a system-derived PARTITION column

COLLECT STATISTICS ON table_1 COLUMN PARTITION;
COLLECT STATISTICS USING SAMPLE table_1 COLUMN PARTITION;