CSUM Function | Teradata Vantage - 17.10 - CSUM - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1145-171K
Language
English (United States)

Returns the cumulative (or running) sum of a value expression for each row in a partition, assuming the rows in the partition are sorted by the sort_expression list.

CSUM accumulates a sum over an ordered set of rows, providing the current value of the SUM on each row.

Type

Teradata-specific function.