Intermediate
SQL Query with Multiple Joins
Construct a SQL query to retrieve data from three related tables.
📝 Nội dung Prompt
Write a SQL query to retrieve the full names of all customers and the total amount they have spent. You have three tables: Customers (customer_id, first_name, last_name), Orders (order_id, customer_id), and Order_Items (order_id, amount). Use appropriate joins and aggregate functions.