Collect Statistics | Teradata Vantage - Collecting Statistics - Advanced SQL Engine - Teradata Database

Database Administration

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
rgu1556127906220.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1093
lifecycle
previous
Product Category
Teradata Vantageâ„¢

Use the COLLECT STATISTICS statement to define the table columns on which you want to collect statistics, for example:

COLLECT STATISTICS ON  database_name.table_name  COLUMN (column_1,  column_2  ...);

At minimum, you should collect statistics on the primary index (PI) of each table. For small tables (<100 rows per AMP) PI statistics may be sufficient.