6.14. Aggregate Functions
Aggregate functions compute a single result value from a set of input values. Table 6-33 show the built-in aggregate functions. The special syntax considerations for aggregate functions are explained in Section 1.2.5. Consult the PostgreSQL 7.3.21 Tutorial for additional introductory information.
Table 6-33. Aggregate Functions
It should be noted that except for count,
these functions return a null value when no rows are selected. In
particular, sum of no rows returns null, not
zero as one might expect. The function coalesce may be
used to substitute zero for null when necessary.
Report a documentation issue
Read the upstream documentation. For corrections, first check the current manual.