|
2 | 2 | title: 'Aggregate Functions'
|
3 | 3 | ---
|
4 | 4 |
|
5 |
| -Aggregate functions are essential tools in SQL that allow you to perform calculations on a set of values and return a single result. |
| 5 | +import IndexOverviewList from '@site/src/components/IndexOverviewList'; |
6 | 6 |
|
7 |
| -These functions help you extract and summarize data from databases to gain valuable insights. |
| 7 | +This section provides reference information for the aggregate functions in Databend. |
8 | 8 |
|
9 |
| -| Function Name | What It Does | |
10 |
| -|---------------------------------------------------------------------|------------------------------------------------------------------------------| |
11 |
| -| [ANY](aggregate-any.md) | Checks if any row meets the specified condition | |
12 |
| -| [APPROX_COUNT_DISTINCT](aggregate-approx-count-distinct.md) | Estimates the number of distinct values with HyperLogLog | |
13 |
| -| [ARG_MAX](aggregate-arg-max.md) | Finds the arg value for the maximum val value | |
14 |
| -| [ARG_MIN](aggregate-arg-min.md) | Finds the arg value for the minimum val value | |
15 |
| -| [AVG_IF](aggregate-avg-if.md) | Calculates the average for rows meeting a condition | |
16 |
| -| [ARRAY_AGG](aggregate-array-agg.md) | Converts all the values of a column to an Array | |
17 |
| -| [AVG](aggregate-avg.md) | Calculates the average value of a specific column | |
18 |
| -| [COUNT_DISTINCT](aggregate-count-distinct.md) | Counts the number of distinct values in a column | |
19 |
| -| [COUNT_IF](aggregate-count-if.md) | Counts rows meeting a specified condition | |
20 |
| -| [COUNT](aggregate-count.md) | Counts the number of rows that meet certain criteria | |
21 |
| -| [COVAR_POP](aggregate-covar-pop.md) | Returns the population covariance of a set of number pairs | |
22 |
| -| [COVAR_SAMP](aggregate-covar-samp.md) | Returns the sample covariance of a set of number pairs | |
23 |
| -| [GROUP_ARRAY_MOVING_AVG](aggregate-group-array-moving-avg.md) | Returns an array with elements calculates the moving average of input values | |
24 |
| -| [GROUP_ARRAY_MOVING_SUM](aggregate-group-array-moving-sum.md) | Returns an array with elements calculates the moving sum of input values | |
25 |
| -| [KURTOSIS](aggregate-kurtosis.md) | Calculates the excess kurtosis of a set of values | |
26 |
| -| [MAX_IF](aggregate-max-if.md) | Finds the maximum value for rows meeting a condition | |
27 |
| -| [MAX](aggregate-max.md) | Finds the largest value in a specific column | |
28 |
| -| [MEDIAN](aggregate-median.md) | Calculates the median value of a specific column | |
29 |
| -| [MEDIAN_TDIGEST](aggregate-median-tdigest.md) | Calculates the median value of a specific column using t-digest algorithm | |
30 |
| -| [MIN_IF](aggregate-min-if.md) | Finds the minimum value for rows meeting a condition | |
31 |
| -| [MIN](aggregate-min.md) | Finds the smallest value in a specific column | |
32 |
| -| [QUANTILE_CONT](aggregate-quantile-cont.md) | Calculates the interpolated quantile for a specific column | |
33 |
| -| [QUANTILE_DISC](aggregate-quantile-disc.md) | Calculates the quantile for a specific column | |
34 |
| -| [QUANTILE_TDIGEST](aggregate-quantile-tdigest.md) | Calculates the quantile using t-digest algorithm | |
35 |
| -| [QUANTILE_TDIGEST_WEIGHTED](aggregate-quantile-tdigest-weighted.md) | Calculates the quantile with weighted using t-digest algorithm | |
36 |
| -| [RETENTION](aggregate-retention.md) | Calculates retention for a set of events | |
37 |
| -| [SKEWNESS](aggregate-skewness.md) | Calculates the skewness of a set of values | |
38 |
| -| [STDDEV_POP](aggregate-stddev-pop.md) | Calculates the population standard deviation of a column | |
39 |
| -| [STDDEV_SAMP](aggregate-stddev-samp.md) | Calculates the sample standard deviation of a column | |
40 |
| -| [STRING_AGG](aggregate-string-agg.md) | Converts all the non-NULL values to String, separated by the delimiter | |
41 |
| -| [SUM_IF](aggregate-sum-if.md) | Adds up the values meeting a condition of a specific column | |
42 |
| -| [SUM](aggregate-sum.md) | Adds up the values of a specific column | |
43 |
| -| [WINDOW_FUNNEL](aggregate-windowfunnel.md) | Analyzes user behavior in a time-ordered sequence of events | |
44 |
| -| [HISTOGRAM](aggregate-histogram.md) | Analyzes value distribution of a specific column | |
| 9 | +<IndexOverviewList /> |
0 commit comments