SQL - Advanced Joins
You have tables:
Write a query to find each customer's name and the total amount they paid across all orders. Which query is correct?
Orders(order_id, customer_id),Customers(customer_id, name),Payments(payment_id, order_id, amount).Write a query to find each customer's name and the total amount they paid across all orders. Which query is correct?
