17.10 - 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.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1211-171K
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