16.20 - Standard Form of Display for SHOW JOIN INDEX for Aggregate Join Indexes - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantage™ SQL Data Definition Language Detailed Topics

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Release Date
March 2019
Content Type
Programming Reference
Publication ID
B035-1184-162K
Language
English (United States)

By definition, the first column in the select list of an aggregate join index definition must be either a COUNT(non_nullable_expression) or COUNT(*) expression. When you create an aggregate join index that does not specify one of these COUNT expressions as the first column in its select list, then Teradata Database automatically moves the first such expression you specify to the first column in the definition. This also occurs whenever Teradata Database must add a COUNT(*) expression to the aggregate join index definition if you specify only a SUM operator.

This means that the column positions in the output of a SHOW JOIN INDEX request for an aggregate join index might not be identical to the column positions in the index definition that you originally typed.