mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
13 lines
182 B
Markdown
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;
|
|
```
|