17.10 - INTERVAL Syntax - 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)
INTERVAL ( { period_expression | derived_period } ) interval_qualifier

Syntax Elements

period_expression
The Period expression to be converted.
derived_period
Any expression that evaluates to a Period data type.
interval_qualifier
Any interval qualifier appropriate for the argument's element type. The interval qualifiers are as follows:
  • Year-Month intervals:
    • YEAR
    • YEAR TO MONTH
    • MONTH
  • Day-Time intervals:
    • DAY
    • DAY TO HOUR, MINUTE or SECOND
    • HOUR
    • HOUR TO MINUTE or SECOND
    • MINUTE
    • MINUTE to SECOND
    • SECOND