Aggregations, GROUP BY, and HAVING in PostgreSQL

Aggregation is how you turn a table full of rows into a number a human actually wants: total revenue, orders per customer, average response time.