17.10 - Example: date_time_expression With Subtraction - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Date and Time Functions and Expressions

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

You can also subtract an interval_term from a date_time_expression.

In this example, an interval_term is subtracted from the date_time_expression.

The columns expiration_date and subscription_interval are typed DATE and INTERVAL MONTH(4), respectively.

EXPIRATION_DATE - SUBSCRIPTION_INTERVAL