Collect Table Statistics | Teradata Studio - Collecting Table Statistics - Teradata Studio

Teradata® Studio™ User Guide

Product
Teradata Studio
Release Number
17.00
Published
January 2021
Language
English (United States)
Last Update
2021-01-11
dita:mapPath
lex1576517377362.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-2041
lifecycle
previous
Product Category
Teradata Tools and Utilities
Statistics must already be defined on at least one column of the table you select.
  1. In the Navigator, double-click Databases.
  2. In the Object List Viewer:
    1. Find the database containing the tables for which you want to collect summary statistics.
    2. Select one or more tables, right-click on a selected table, and select Statistics > Collect > Collect TableLevel.
      If no statistics are defined, the message “The selected table objects don't have column or index statistics and summary statistics defined” displays.
  3. To view the statistics:
    1. Right-click a table you selected and select Open Table.
    2. Click the Statistics tab in the Table form.
      Summary statistics can also be collected using the following query:
      SELECT * from DBC.StatsV WHERE databasename IN (<<dbname>>) AND tablename IN (<<tablename>>);