SUM Return Values - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

The following table lists the default attributes for the result of SUM(x).

Data Type of Operand Data Type of Result Format Title
BYTEINT or SMALLINT INTEGER Default format of the INTEGER data type Sum(x)
character FLOAT Default format for FLOAT
UDT Same as the operand Format for the data type to which the UDT is implicitly cast
DECIMAL(n,m) DECIMAL(p,m), where p is determined by a system setting. Default format for the data type of the operand Sum(x)
Other than UDT, SMALLINT, BYTEINT, DECIMAL, or character Same as the operand Default format for the data type of the operand