Overview
Aggregate functions compute a single result from a set of input values. Redpanda SQL supports the following aggregate functions:
| Function Name | Description |
|---|---|
Calculates and returns the sum of all values |
|
Calculates and returns the minimum value |
|
Calculates and returns a value corresponding to the minimal metric in the same row from a set of values |
|
Calculates and returns the maximum value |
|
Calculates and returns a value corresponding to the maximum metric in the same row from a set of values |
|
Calculates and returns the average value |
|
Counts the number of rows |
|
Calculates the boolean of all the boolean values in the aggregated group. |
|
Calculates the boolean of all the boolean values in the aggregated group. |
| Function qualifier | Description |
|---|---|
Allows aggregation functions to operate on a distinct set of values within a column |
|
You can utilize the aggregate functions with the |