Available in versions: Dev (3.21) | Latest (3.20) | 3.19 | 3.18 | 3.17 | 3.16 | 3.15 | 3.14 | 3.13 | 3.12 | 3.11
Aggregate functions
Applies to ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
Aggregate functions work like Java java.util.stream.Collector
, as they aggregate data from a group of data into a new data structure.
This section will first explain concepts common to many aggregate functions, and then proceed to explaining individual aggregate functions supported by jOOQ.
Table of contents
- 3.8.19.1.
- Grouping
- 3.8.19.2.
- Distinctness
- 3.8.19.3.
- Filtering
- 3.8.19.4.
- Ordering
- 3.8.19.5.
- Ordering WITHIN GROUP
- 3.8.19.6.
- Keeping
- 3.8.19.7.
- ANY_VALUE (new)
- 3.8.19.8.
- ARRAY_AGG
- 3.8.19.9.
- AVG
- 3.8.19.10.
- BOOL_AND
- 3.8.19.11.
- BOOL_OR
- 3.8.19.12.
- COLLECT
- 3.8.19.13.
- COUNT
- 3.8.19.14.
- CUME_DIST
- 3.8.19.15.
- DENSE_RANK
- 3.8.19.16.
- EVERY
- 3.8.19.17.
- GROUP_CONCAT
- 3.8.19.18.
- JSON_ARRAYAGG
- 3.8.19.19.
- JSON_OBJECTAGG
- 3.8.19.20.
- LISTAGG
- 3.8.19.21.
- MAX
- 3.8.19.22.
- MEDIAN
- 3.8.19.23.
- MIN
- 3.8.19.24.
- MODE
- 3.8.19.25.
- MULTISET_AGG (new)
- 3.8.19.26.
- PERCENT_RANK
- 3.8.19.27.
- PERCENTILE_CONT
- 3.8.19.28.
- PERCENTILE_DISC
- 3.8.19.29.
- PRODUCT
- 3.8.19.30.
- RANK
- 3.8.19.31.
- SUM
- 3.8.19.32.
- XMLAGG
previous : next |
References to this page
- Using column expressions in the GROUP BY clause
- Using the empty grouping set in GROUP BY
- JSON functions
- XML functions
- Aggregating a subset of a group's data using FILTER
- Window function nesting aggregate functions
- Using aggregate functions as window functions
- User-defined aggregate functions
- Don't do this in SQL: SELECT DISTINCT
Feedback
Do you have any feedback about this page? We'd love to hear it!