Index_Field - Advanced SQL Engine - Teradata Database

SQL Request and Transaction Processing

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-24
dita:mapPath
ykx1561500561173.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1142
lifecycle
previous
Product Category
Teradata Vantage™

Function of Index_Field

Captures all the index columns used in the query plan.

Index_Field Table Definition

The following CREATE TABLE request defines the Index_Field table:

CREATE TABLE Index_Field(
  RelationKey  INTEGER NOT NULL,
  IndexNum     INTEGER NOT NULL,
  FieldID      INTEGER NOT NULL)
PRIMARY INDEX PK_Relationkey_IdxNum(RelationKey, IndexNum)
UNIQUE INDEX USK_RelationKey_IdxNum_FieldID (RelationKey,
 IndexNum, FieldID);

Attribute Definitions for Index_Field

The following table defines the Index_Field table attributes:

Attribute Definition
RelationKey
  • Unique identifier for the relation in which the captured index columns are defined.
  • Partial NUPI for the table.
  • Partial USI for the table.
IndexNum
  • Unique identifier for the captured index.
  • Partial NUPI for the table.
  • Partial USI for the table.
FieldID
  • Unique column identifier within a specific table.
  • Partial USI for the table.