Cardinality and Uniqueness Statistics for the Reasonable Unindexed Join Examples - 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ā„¢

Dimension Table Cardinality Statistics

For LT/ST-J2a (Reasonable Unindexed) join example, the following row information is given for the small tables:

Attribute Cardinality (rows)
                           color                                               3
                           size                                             10
                           options                                             10

Fact Table Uniqueness Statistics

The following statistics information is given for the large table:

Column Name Number of Unique Values
                           color                                               6
                           size                                             30
                           options                                           300

No index is created on the collection of join columns (color, size, and options) of the large table.

Test Query

The following query is used for the LT/ST-J2a (Reasonable Unindexed) join in this example:

     SELECT *
     FROM widget, color, size, options
     WHERE widgets.color=color.code
     AND   widgets.size=size.code
     AND   widgets.options=options.code
     AND   size.description=options.description;