Aggregate function
a function summarizing multiple values into one summary statistic

In database management, an aggregate function or aggregation function is a function where multiple values are processed together to form a single summary statistic.
Common aggregate functions include:
Average (i.e., arithmetic mean)
Count
Maximum
Median
Minimum
Mode
Range
Sum
Others include:
Nanmean (mean ignoring NaN values, also known as "nil" or "null")
Stddev
Formally, an aggregate function takes as input a set, a multiset (bag), or a list from some input domain I and outputs an element of an output domain O. The input and output domains may be the same, such as for SUM, or may be different, such as for COUNT.
Aggregate functions occur commonly in numerous programming languages, in spreadsheets, and in relational algebra.
The listagg function, as defined in the SQL:2016 standard
aggregates data from multiple rows into a single concatenated string.
In the entity relationship diagram, aggregation is represented as seen in Figure 1 with a rectangle around the relationship and its entities to indicate that it is being treated as an aggregate entity.
Decomposable aggregate functions
Aggregate functions present a bottleneck, because they potentially require having all input values at once. In distributed computing, it is desirable to divide such computations into smaller pieces, and distribute the work, usually computing in parallel, via a divide and conquer algorithm.
Some aggregate functions can be computed by computing the aggregate for subsets, and then aggregating these aggregates; examples include COUNT, MAX, MIN, and SUM. In other cases the aggregate can be computed by computing auxiliary numbers for subsets, aggregating these auxiliary numbers, and finally computing the overall number at the end; examples include AVERAGE (tracking sum and count, dividing at the end) and RANGE (tracking max and min, subtracting at the end). In other cases the aggregate cannot be computed without analyzing the entire set at once, though in some cases approximations can be distributed; examples include DISTINCT COUNT (Count-distinct problem), MEDIAN, and MODE.
Such functions are called decomposable aggregation functions or decomposable aggregate functions. The simplest may be referred to as self-decomposable aggregation functions, which are defined as those functions f such that there is a merge operator
⋄
{\displaystyle \diamond }
such that
f
(
X
⊎
Y
)
=
f
(
X
)
⋄
f
(
Y
)
{\displaystyle f(X\uplus Y)=f(X)\diamond f(Y)}
where
⊎
{\displaystyle \uplus }
is the union of multisets (see monoid homomorphism).
For example, SUM:
SUM
(
x
)
=
x
{\displaystyle \operatorname {SUM} ({x})=x}
, for a singleton;
SUM
(
X
⊎
Y
)
=
SUM
(
X
)
+
SUM
(
Y
)
{\displaystyle \operatorname {SUM} (X\uplus Y)=\operatorname {SUM} (X)+\operatorname {SUM} (Y)}
, meaning that merge
⋄
{\displaystyle \diamond }
is simply addition.
“Aggregate function” enters the record as a function summarizing multiple values into one summary statistic. Crown Archives preserves that source wording while asking what Aggregate, function and summarizing can confirm, complicate or overturn.
Why this record matters
“Aggregate function” is worth following because a concise public description often conceals a longer documentary argument. Here, Aggregate, function and summarizing provides the most credible route into that argument.
Named sources, stable identifiers and responsible institutions provide the strongest route from overview to verifiable evidence. The source revision retrieved here is dated Oct 22, 2025. The linked authority identifier is Q4115063. None of the 0 selected statements returned an explicit reference. The first chronological checks are 2016.
Overview language is designed for orientation and should not be treated as a substitute for the evidence cited beneath it. The source lead contains qualifying language; that uncertainty should survive quotation, summary and reuse. Authority statements aid reconciliation but still require their own references, qualifiers and ranks to be checked.
How to read it
Use the entry as an orientation point, then follow its citations and revision history. Names, dates and institutional relationships should be checked against the original record.
- Subject orientation
- Search vocabulary
- Locating named sources
The closest primary source, responsible institution and strongest cited specialist reference.
Three-step research path
- Establish the record: confirm the title “Aggregate function”, its source revision and the description used here.
- Expand the search: follow Aggregate function primary sources, Aggregate function archive and Aggregate research across catalogues and specialist indexes.
- Test the account: compare the strongest cited source with the responsible institution’s current record and note any disagreement.
Questions for further research
- Which source most directly establishes the central claim about “Aggregate function”?
- Which institution is responsible for the underlying evidence?
- What terminology or title could unlock a more precise catalogue search?
Search terms from this dossier
This entry incorporates text from “Aggregate function” on English Wikipedia. Contributors are listed in the page history. Text is available under the Creative Commons Attribution-ShareAlike 4.0 License. Selected authority identifiers and statements are retrieved from Wikidata under CC0; their references and qualifiers remain part of the verification path.