Choose the correct syntax for deleting one or more records from the table based on a condition.
Choose the correct syntax for deleting one or more records from the table based on a condition.
Solution
✅ Correct Option: 4
The SQL syntax for deleting rows that meet a condition is . The WHERE clause picks which rows to remove, and without it every row in the table is deleted.
Options 1 and 2: HAVING filters groups after GROUP BY, not individual rows, so it cannot be used here.
Option 3: WHERE is correct, but the word TABLE after FROM is not valid in DELETE syntax. TABLE is used in DROP TABLE and CREATE TABLE.
DELETE removes rows and keeps the table structure, while DROP TABLE removes the whole table.
Related questions:
2025: 16 May Shift 1
2026: 13 May Shift 2