Skip to content
Tech Interview Prep home
Technical interview guide

Aggregations & GROUP BY

Collapsing many rows into one summary row per group — counts, sums, and averages — plus the HAVING clause that filters groups.

Read
22 min
Practice MCQs
25
Interview QA
25
Edition
v3
Editorial status
Reviewed

Scope: SQL principles with PostgreSQL 18 examples; vendor-specific behavior must be verified.

Curated: · Written: · Reviewed: