Example: Current Query on a Transaction-Time Table - 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
Language
English (United States)
Last Update
2023-10-30
dita:mapPath
eud1628112402879.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
fif1472244754791
lifecycle
latest
Product Category
Teradata Vantage™

To query a transaction-time table for the current rows, use the CURRENT TRANSACTIONTIME temporal qualifier in the SELECT statement. For example:

   CURRENT TRANSACTIONTIME
   SELECT *
   FROM Policy_Types;

The result is a nontemporal result set. (The result set does not include the transaction-time column.)

   Policy_Name           Policy_Type
   --------------------  -----------
   Premium Automobile    AP
   Basic Homeowner       HM
   Basic Automobile      AU
   Premium Homeowner     HP