Sum - Teradata Warehouse Miner

Teradata Warehouse Miner User Guide - Volume 2ADS Generation

Product
Teradata Warehouse Miner
Release Number
5.4.4
Published
July 2017
Language
English (United States)
Last Update
2018-05-03
dita:mapPath
fcf1492702067123.ditamap
dita:ditavalPath
ft:empty
dita:id
B035-2301
Product Category
Software

The standard sum function is supported, generating SUM (expression). The type of the resulting value depends on the type of the expression being summed. If the expression is any of the integer types, the resulting value is of type integer. If the expression is a float or character type, the resulting value is of type float. A decimal expression results in a value of decimal type with 18 total digits and the same number of fractional digits contained in the decimal expression. When dragging a Sum into a variable, the following tree element is created.

Variable Creation > Input > Variables: SQL Elements pane - Aggregation > Sum

Columns and/or other non-aggregate expressions can be moved over the (empty) branch of the tree.

The option to compute the sum over distinct values only is provided, resulting in the generation of SUM(DISTINCT expression). This option is enabled through the Properties panel. Double-click on Sum, or highlight it and click Properties.

Variable Creation > Input > Variables: SQL Elements pane - Aggregation > Sum Properties