Sum function
Updated at:
sum is an aggregate function that computes the total of all values in a column.
Syntax
sum(expression)Arguments
| Argument | Description |
|---|---|
expression | The column to sum. |
Examples
Sum all values in column c1:
SELECT sum(c1) FROM test;Is this page helpful?