Cardinality and Uniqueness Statistics for the Reasonable Indexed Join Examples - 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-10-04
dita:mapPath
zfm1628111633230.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
evd1472255317510
lifecycle
latest
Product Category
Teradata Vantage™

Small Table Cardinality Statistics

For all LT/ST-J1a (Reasonable Indexed Joins) examples, the following row information is given for the small dimension tables:

Attribute Cardinality
color 2
size 10
options 10

Large Table Uniqueness Statistics

The following statistics information is given for the large fact table:

Column Name Number of Unique Values
color 10
size 100
options 1000

Test Query

These examples explain the join plans and estimated time for running the following query, when different types of indexes (primary index, unique secondary index, nonunique secondary index) are created on the join columns (color, size, and options) of the large table.

SELECT …
WHERE widgets.color = color.code
AND   widgets.size = size.code
AND   widgets.options = options.code;