Explore Library
QuizAdvanced

Joins with GROUP BY Aggregation

Learn how to combine a JOIN with GROUP BY to count related rows per group.

You have a customers table and an orders table (orders.customer_id references customers.id). Which query returns each customer's name alongside the total number of orders they placed?