Collecting Statistics - Teradata Database

Teradata Database Administration

Product
Teradata Database
Release Number
15.10
Language
English (United States)
Last Update
2018-10-06
Product Category
Software

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.