Teradata Database supports temporal SQL that allows you to qualify queries based on the durations associated with the rows:
For example:
SELECT Customer_ID, Policy_type
FROM Policy
FOR VALIDTIME AS OF DATE’2009-11-24’;
Customer_ID Policy_Type
----------- -----------
246824626 AU
Temporal DELETE and UPDATE modifications can include a FOR PORTION OF qualifier that specifies when during the duration of a row a change or deletion is in effect, so such changes need not apply to the whole row in an all-or-nothing fashion.
Note: Note that Teradata Database provides rich support for Period data types, including operators, functions, and predicates, which could be used to return similar results. However, Period data types, period functions (BEGIN, END, LAST and INTERVAL), and the period predicate operator MEETS, are not ANSI standard SQL.
For more information on... |
See... |
Period data types and derived period columns |
|