OVERLAPS Function | SQL Date/Time Functions & Expressions | Teradata Vantage - 17.00 - 17.05 - OVERLAPS - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Date and Time Functions and Expressions

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
17.05
Release Date
June 2020
Content Type
Programming Reference
Publication ID
B035-1211-170K
Language
English (United States)

Tests whether two time periods overlap each another.

Syntax

time_period_expression OVERLAPS time_period_expression
time_period_expression
{ ( { datetime_expression, { datetime_expression | interval_expression } |
      row_subquery
    } ) |
  period_expression |
  derived_expression
}
datetime_expression
A start and end DateTime.
interval_expression
An end DateTime.
row_subquery

A subquery that selects the same number of expressions as are specified in the expression or list of expressions.

The subquery cannot specify a SELECT AND CONSUME statement.

period_expression
The Period expression to be converted.
derived_period
Any expression that evaluates to a Period data type.