Creating a Join Index on a Table with Transaction Time - Advanced SQL Engine - Teradata Database

Temporal Table Support

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

To create a join index on a table with transaction time, precede the SELECT statement in the join index definition with a CURRENT TRANSACTIONTIME or NONSEQUENCED TRANSACTIONTIME qualifier. For example:

   CREATE JOIN INDEX Policy_Types_JI AS
   CURRENT TRANSACTIONTIME SELECT Policy_Type, Policy_Duration
   FROM Policy_Types;

A join index that is current in the transaction-time dimension must project the transaction-time column in the SELECT statement. Here, the Policy_Duration column is the transaction-time column.