hard
Generate SQL Query
Write a SQL query to extract specific data from a theoretical database schema.
📝 Contenu du Prompt
Write a SQL query to find the top 3 customers who spent the most money in the last month. Assume a table named 'sales' with columns: customer_id (int), amount (decimal), and transaction_date (datetime). Include the total amount spent by each customer in the result.