INTERVAL Syntax - Analytics Database - Teradata Vantage

SQL Date and Time Functions and Expressions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-10-30
dita:mapPath
cpk1628111786971.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
pxz1544241488545
lifecycle
latest
Product Category
Teradata Vantage™
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