CBSE Class 12 Computer Science
Question 87 of 91
Grouping Records, Joins in SQL — Question 22
Back to all questionsSELECT c.customer_id, COUNT(o.order_id) AS total_orders
FROM Customers c, orders o
WHERE c.customer_id = o.customer_id
GROUP BY c.customer_id;