Example: Current Query on a Transaction-Time Table - 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 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