Intermediate
Generate SQL Query
Writes an SQL query to retrieve specific data based on requirements.
📝 Contenu du Prompt
Write a SQL query to select all records from the 'orders' table where the 'status' is 'completed' and the 'order_date' is within the last 30 days. Sort the results by 'total_amount' in descending order.