Session Temporal Qualifiers | Temporal Table Support | Teradata Vantage - Session Temporal Qualifiers - Analytics Database - Teradata Vantage

Temporal Table Support

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2023-10-30
dita:mapPath
eud1628112402879.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
fif1472244754791
lifecycle
latest
Product Category
Teradata Vantage™

The SET SESSION statement lets you set session temporal qualifiers in the valid-time dimension, transaction-time dimension, or both dimensions. When a DML or SELECT statement refers to a temporal table but omits a temporal qualifier, the system uses the value of the session temporal qualifier.

A session temporal qualifier of CURRENT VALIDTIME AND CURRENT TRANSACTIONTIME allows applications written prior to the temporal capability to continue functioning without modifications in a non-temporal way on tables that may have been converted to temporal tables.

You can check the session temporal qualifier setting by looking at the Temporal Qualifier field of the output of the HELP SESSION statement. For more information on session temporal qualifiers, see SET SESSION (Session Temporal Qualifiers). For more information on HELP SESSION, see Teradata Vantage™ - SQL Data Definition Language Syntax and Examples, B035-1144.

Best practice is to always use explicit temporal qualifiers on SELECT and DML statements that operate on temporal tables, rather than relying on the default temporal session qualifiers.