SQL query from plain-English requirements
Write a SQL query for the following requirement. Database: [PostgreSQL / MySQL / SQLite — specify] Table schema: Table name: [name] Columns: [column_name (type), column_name (type), ...] Sample rows (2-3): [paste 2-3 rows] Requirement: [describe what the query should return in plain English] Constraints: - Filter to: [date range / status / category — specify or remove] - Limit results to: [number] rows if no specific filter - Sort by: [column and direction] Output: 1. The SQL query. 2. A plain-English explanation of what it does (2-3 sentences). 3. Assumptions you made about the data. 4. Any edge cases this query does not handle.
Opens on home with the prompt prefilled.
Open in Promptea