ClickHouse/docs/en/sql-reference/aggregate-functions/reference/sum.md
2023-01-26 17:33:30 +03:00

13 lines
182 B
Markdown

---
slug: /en/sql-reference/aggregate-functions/reference/sum
sidebar_position: 4
---
# sum
Calculates the sum. Only works for numbers.
```
SELECT sum(salary) FROM employees;
```