medium
Generate SQL Query
Write a SQL query to get top customers.
📝 Contenu du Prompt
Write a SQL query for a table named 'orders' with columns 'customer_id', 'order_date', and 'total_amount'. The query should return the top 5 customers who spent the most money in the last 30 days.