CBSE Class 12 Informatics Practices
Question 81 of 90
Querying Using SQL — Question 21
Back to all questionsSELECT c.customer_id, c.state, SUM(o.amount) AS total_order_amount
FROM Customers c, orders o
WHERE c.customer_id = o.customer_id
GROUP BY c.customer_id, c.state;