SUM in Teradata

SUM function is used to find out the sum of a field in various records.

Syntax:
SELECT SUM(expression )
FROM tables
WHERE predicates;


Example:
SELECT SUM(salary) as "Total Salary"
FROM employees
WHERE salary > 25000;