4.2. Value Expressions # 4.2.1. Column References 4.2.2. Positional Parameters 4.2.3. Subscripts 4.2.4. Field Selection 4.2.5. Operator Invocations 4.2.6. Function Calls …| PostgreSQL Documentation
9.21. Aggregate Functions # Aggregate functions compute a single result from a set of input values. The built-in general-purpose aggregate functions …| PostgreSQL Documentation
7.2. Table Expressions # 7.2.1. The FROM Clause 7.2.2. The WHERE Clause 7.2.3. The GROUP BY and HAVING Clauses 7.2.4. GROUPING …| PostgreSQL Documentation