CBSE Class 12 Computer Science
Question 89 of 91
Grouping Records, Joins in SQL — Question 24
Back to all questionsSELECT CONCAT(c.first_name, ' ', c.last_name) AS customer_name,
SUM(o.amount) AS total_order_amount
FROM Customers c, Orders o
WHERE c.customer_id = o.customer_id
GROUP BY c.customer_id;