advanced
Generate SQL Query
Create a complex SQL query based on a specific data requirement and schema description.
📝 Nội dung Prompt
Act as a Senior Database Engineer. I have two tables: 'Users' (id, name, signup_date) and 'Orders' (id, user_id, amount, order_date). Write a SQL query to find the top 5 users by total spending in the last 30 days, including their names and total amounts.