17.00 - Example: Using StatUseCountV[X] - Teradata Database

Teradata Vantage™ - Data Dictionary

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
created_date
June 2020
category
Administration
Programming Reference
featnum
B035-1092-170K

The following SELECT statement shows the number of statistics accesses ocarina on a particular table:

SELECT StatName, AccessCount FROM DBC.StatUseCountV WHERE DatabaseName = 'Personnel' AND TableName = 'Employee';

The query returns the following result:

StatName  AccessCount
--------- ------------
ST1_id    10