Standard Form of Display for SHOW JOIN INDEX for Aggregate Join Indexes - Advanced SQL Engine - Teradata Database

SQL Data Definition Language Detailed Topics

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
jpx1556733107962.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1184
lifecycle
previous
Product Category
Teradata Vantage™

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.