17.00 - 17.05 - Arithmetic Operators and Result Types - 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)

The following arithmetic operations are permitted for DateTime and Interval data types.

First Value Type Operator Second Value Type Result Type
DateTime - DateTime Interval
DateTime + Interval DateTime
DateTime - Interval DateTime
Interval + DateTime DateTime
Interval + Interval Interval
Interval - Interval Interval
Interval * Number Interval
Interval / Number Interval
Number * Interval Interval