IndexColumns - Analytics Database - Teradata Vantage

SQL Request and Transaction Processing

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-05-02
dita:mapPath
zfm1628111633230.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
evd1472255317510
lifecycle
latest
Product Category
Teradata Vantage™

Function of IndexColumns

Captures the columns that form the index identified by IndexID during index analysis using INITIATE INDEX ANALYSIS.

IndexColumns Table Definition

The following CREATE TABLE request defines the IndexColumns table:

   CREATE TABLE IndexColumns(
     WorkLoadID       INTEGER NOT NULL,
     RecommendationID INTEGER NOT NULL,
     TableID          BYTE(6) NOT NULL,
     IndexID          INTEGER NOT NULL,
     ColumnName       VARCHAR128 CHARACTER SET UNICODE
                      NOT CASESPECIFIC NOT NULL)
   PRIMARY INDEX ( RecommendationID, TableID, IndexID );

Attribute Definitions for IndexColumns

The following table defines the IndexColumns table attributes:

Attribute Definition
WorkloadID Uniquely identifies the workload analyzed to create this secondary index recommendation.
RecommendationID
  • Uniquely identifies the recommendation ID in the IndexRecommendations table.
  • Partial NUPI for the table.
TableID
  • Uniquely identifies the table ID in the IndexRecommendations table.
  • Partial NUPI for the table.
IndexID
  • Uniquely identifies the index in the IndexRecommendations table.
  • Partial NUPI for the table.
ColumnName The name of the column in the index.

The number of rows in IndexColumns for a given index is equal to the number of columns in the index, so any composite index has multiple rows associated with it.