intermediate
SQL Query Generation
Generates a SQL query based on specific data requirements.
📝 Nội dung Prompt
Write a SQL query to select the top 10 users with the highest total spend from a table named 'orders'. Group the results by user_id and order them by total spend in descending order.