New versions: Dev (3.14) | Latest (3.13) | 3.12 | 3.11 | 3.10 | 3.9 | 3.8 | Old versions: 3.7 | 3.6 | 3.5 | 3.4 | 3.3 | 2.6

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

4.7.14.1.
Grouping
4.7.14.2.
Distinctness
4.7.14.3.
Filtering
4.7.14.4.
Ordering
4.7.14.5.
Ordering WITHIN GROUP
4.7.14.6.
Keeping
4.7.14.7.
ARRAY_AGG
4.7.14.8.
AVG
4.7.14.9.
BOOL_AND
4.7.14.10.
BOOL_OR
4.7.14.11.
COUNT
4.7.14.12.
CUME_DIST
4.7.14.13.
DENSE_RANK
4.7.14.14.
EVERY
4.7.14.15.
GROUP_CONCAT
4.7.14.16.
LISTAGG
4.7.14.17.
MAX
4.7.14.18.
MEDIAN
4.7.14.19.
MIN
4.7.14.20.
MODE
4.7.14.21.
PERCENT_RANK
4.7.14.22.
PERCENTILE_CONT
4.7.14.23.
PERCENTILE_DISC
4.7.14.24.
PRODUCT
4.7.14.25.
RANK
4.7.14.26.
SUM

The jOOQ User Manual. Multiple Pages : SQL building : Column expressions : Aggregate functionsprevious : next
The jOOQ Logo