Posted on 4th May 2025|411 views
Explain csum function with example
Posted on 4th May 2025| views
In Teradata, csum function is used to calculate the sum of the value expression for each row of the partition. It assumes that rows of the partition are sorted through sort_expression list.
Example:
CSUM(Employ, Emp_salary)