SQL Aggregations

Created by Abhyuday DesaiPublished , v1Runs 7 min 41 sec
1 view

About this video

Most screening questions are built on this layer: collapse many order rows into one number per customer. One eight-row orders table powers every example, and it never leaves the screen.

You'll review how to:

  • Use COUNT, SUM, AVG, MIN and MAX, and why COUNT(*) and COUNT(column) differ
  • Group with GROUP BY and read the rule for what the SELECT list may contain
  • Put a condition in WHERE or in HAVING, and why the order matters
  • Compute several conditional metrics in one query with CASE inside SUM, and the COUNT-with-ELSE-0 trap

For engineers who know SELECT, WHERE and ORDER BY and want aggregation questions to feel routine again.

What changed

  1. v103 Oct 2026abhydesai7 min 41 sec037acd5

    First published version.

    1 view0 likes on this version