Aggregate function

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

In database management an aggregate function is a function where the values of multiple rows are grouped together to form a single value of more significant meaning or measurement such as a set, a bag or a list.

Common aggregate functions include :

The listagg function, as defined in the SQL:2016 standard [1] aggregates data from multiple rows into a single concatenated string.

Aggregate functions occur commonly in numerous programming languages, in spreadsheets, and in relational algebra.

See also[edit]


  1. ^ Winand, Markus (2017-05-15). "Big News in Databases: New SQL Standard, Cloud Wars, and ACIDRain (Spring 2017)". DZone. Retrieved 2017-06-10. In December 2016, ISO released a new version of the SQL standard. It introduces new features such as row pattern matching, listagg, date and time formatting, and JSON support.

Further reading[edit]