17.10 - Example: Current Query on a Transaction-Time Table - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - Temporal Table Support

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1182-171K
Language
English (United States)

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