- valid_time_table
- The valid-time table being queried.
- AS OF
- Qualifies rows in valid-time tables with valid-time periods that include the specified point in time. This means the information in the row is, was, or will be valid at the specified point in time.Although the returned rows are valid at the time specified by the query, they may not be valid at the time the query is submitted.
- point_in_time
- point_in_time_1
- point_in_time_2
- Identifies the point in valid time or delimits the period in valid time for which rows will be returned.
- BETWEEN ... AND
- Qualifies all rows with valid-time periods that overlap or immediately succeed the period defined by point_in_time_1 and point_in_time_2.This is not the commonly understood meaning of “between” because BETWEEN will qualify rows with valid-time periods that begin before by point_in_time_1, and rows that start immediately after point_in_time_2 and extend beyond that. For a qualifier that reflects the commonly understood meaning of BETWEEN, use the CONTAINED IN qualifier.
- FROM TO
- Qualifies all rows with valid-time periods that overlap the period defined by point_in_time_1 and point_in_time_2.
- CONTAINED IN
- Qualifies all rows with valid-time periods that are between point_in_time_1 and point_in_time_2. The valid-time period starts at or after point_in_time_1, and ends before or at point_in_time_2.CONTAINED IN is a Teradata extension to ANSI.