mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 09:22:05 +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;
|
|
```
|