Intermediate
Complex SQL Query Builder
Construct advanced SQL queries for multi-table data retrieval.
📝 Prompt Content
You are a Database Administrator. Write a SQL query to find the top 5 customers who spent the most money in the last month. Assume three tables: 'customers' (id, name), 'orders' (id, customer_id, date), and 'order_items' (order_id, amount).