Advanced
Debug a SQL Query
Analyze a SQL query to identify errors and suggest corrections to ensure it returns the correct data.
📝 プロンプトの内容
I am trying to find all customers who have placed an order in the last month. My query is 'SELECT * FROM customers WHERE order_date > NOW() - 1 MONTH'. It is returning a syntax error. Identify the mistake and provide the corrected SQL query for a standard PostgreSQL database.