sum()

Returns the sum of all rows values in a numeric column.

sum() follows this syntax.

SELECT sum(column_name)
FROM dataset
WHERE condition;