Available in versions: Dev (3.20) | Latest (3.19) | 3.18 | 3.17 | 3.16 | 3.15 | 3.14 | 3.13 | 3.12 | 3.11 | 3.10

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.10.21.1.
Grouping
3.10.21.2.
Distinctness
3.10.21.3.
Filtering
3.10.21.4.
Ordering
3.10.21.5.
Ordering WITHIN GROUP
3.10.21.6.
Keeping
3.10.21.7.
ANY_VALUE
3.10.21.8.
ARRAY_AGG
3.10.21.9.
AVG
3.10.21.10.
BIT_AND_AGG (new)
3.10.21.11.
BIT_OR_AGG (new)
3.10.21.12.
BIT_XOR_AGG (new)
3.10.21.13.
BOOL_AND
3.10.21.14.
BOOL_OR
3.10.21.15.
COLLECT
3.10.21.16.
COUNT
3.10.21.17.
CUME_DIST
3.10.21.18.
DENSE_RANK
3.10.21.19.
EVERY
3.10.21.20.
GROUP_CONCAT
3.10.21.21.
JSON_ARRAYAGG
3.10.21.22.
JSON_OBJECTAGG
3.10.21.23.
LISTAGG
3.10.21.24.
MAX
3.10.21.25.
MEDIAN
3.10.21.26.
MIN
3.10.21.27.
MODE
3.10.21.28.
MULTISET_AGG
3.10.21.29.
PERCENT_RANK
3.10.21.30.
PERCENTILE_CONT
3.10.21.31.
PERCENTILE_DISC
3.10.21.32.
PRODUCT
3.10.21.33.
RANK
3.10.21.34.
SUM
3.10.21.35.
XMLAGG

previous : next

Feedback

Do you have any feedback about this page? We'd love to hear it!

The jOOQ Logo