intermediate
SQL Query Drafter
Generates SQL queries based on natural language descriptions.
📝 提示内容
Write a SQL query for a PostgreSQL database. I have two tables, 'users' (id, name, signup_date) and 'orders' (id, user_id, total, order_date). I need to find the top 5 users by total spending in the last 30 days. Include the user's name and their total spending amount.