ClickHouse/docs/en/sql-reference/statements/select/all.md
Roman Bug a4f2ee0752
DOCSUP-6144: Edit and translate PR to Russian (#19780)
Co-authored-by: Anna <42538400+adevyatova@users.noreply.github.com>
Co-authored-by: romanzhukov <romanzhukov@yandex-team.ru>
Co-authored-by: Vladimir <vdimir@yandex-team.ru>
2021-03-01 16:51:38 +03:00

569 B

toc_title
ALL

ALL Clause

If there are multiple matching rows in the table, then ALL returns all of them. SELECT ALL is identical to SELECT without DISTINCT. If both ALL and DISTINCT specified, exception will be thrown.

ALL can also be specified inside aggregate function with the same effect(noop), for instance:

SELECT sum(ALL number) FROM numbers(10);

equals to

SELECT sum(number) FROM numbers(10);

Original article