intermediate
SQL Query Generator
Generate a complex SQL query based on a description.
📝 Contenu du Prompt
Write a SQL query to select the top 5 customers who have spent the most money in the last month. Assume a table named 'orders' with columns 'customer_id', 'total_amount', and 'order_date'. Include the SQL code and a brief explanation of how the query works.