CBSE Class 12 Informatics Practices
Question 79 of 90
Querying Using SQL — Question 19
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;