ClickHouse/docs/en/sql-reference/aggregate-functions/reference/sumcount.md
2021-05-24 17:44:53 +00:00

887 B

toc_priority
142

sumCount

Short description.

Syntax

sumCount(x)

Arguments

  • x — Description. Optional (only for optional arguments). Possible values: . Default value: . Type name.
  • y — Description. Optional (only for optional arguments). Possible values: .Default value: . Type name.

Returned value

  • Tuple (sum, count), where sum is the sum of numbers and count is a counts the number of rows or not-NULL values.

Type: Tuple.

Example

The example must show usage and/or a use cases. The following text contains recommended parts of an example.

Input table (Optional):

Query:

Result: