17.10 - Example: Using ColumnUseCountV - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1092-171K
Language
English (United States)

The following SELECT statement shows the number of accesses occurring on the columns of a particular table:

SELECT FieldName, AccessCount FROM DBC.ColumnUseCountV WHERE DatabaseName = 'Personnel' AND TableName = 'Employee';

Result:

FieldName  AccessCount
---------- ------------
id         15
name       13