17.10 - CREATE VIEW/REPLACE VIEW Syntax (Temporal Forms) - 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)
Teradata Vantage™ - Temporal Table Support describes syntax that is especially relevant to temporal tables. Syntax that is not required, or that is not otherwise specific to temporal tables is generally not shown in this document. For additional syntax, see Teradata Vantage™ - SQL Data Definition Language Syntax and Examples, B035-1144 , Teradata Vantage™ - SQL Data Manipulation Language, B035-1146 , and Teradata Vantage™ - SQL Data Control Language, B035-1149.
{ CREATE | REPLACE } VIEW
  [ database_name. | user_name. ] view_name [ ( column_name [,...] ) ]
  AS { [ temporal_qualifier ] select_statement |
       ( [ temporal_qualifier ] select_statement )
     } [;]
To ensure application portability to ANSI standards for temporal SQL, Teradata recommends explicit specification of all temporal qualifiers.
temporal_qualifier
{ valid_time_qualifier [ AND transaction_time_qualifier ] |

  transaction_time_qualifier [ AND valid_time_qualifier ] |

  AS OF date_timestamp_expression
}
valid_time_qualifier
{ CURRENT VALIDTIME |

  VALIDTIME AS OF date_timestamp_expression |

  { [ SEQUENCED | NONSEQUENCED ] VALIDTIME } [ period_expression ]
}
transaction_time_qualifier
{ { CURRENT | SEQUENCED | NONSEQUENCED } TRANSACTIONTIME |

  TRANSACTIONTIME AS OF date_timestamp_expression
}