Identify the correct statement in order to delete all the rows of a table 'EMPLOYEE' without deleting the structure:
Identify the correct statement in order to delete all the rows of a table 'EMPLOYEE' without deleting the structure:
Solution
✅ Correct Option: 1
DELETE FROM EMPLOYEE; removes every row because it has no WHERE clause, and the table structure (columns, constraints) stays in the database.
Option 4: DROP TABLE removes the whole table, structure included, along with its data.
Option 2: DELETE TABLE is not valid SQL syntax.
Option 3: DROP FROM is not valid SQL syntax.
TRUNCATE TABLE EMPLOYEE; also empties a table while keeping its structure.
Related questions:
2026: 26 May Shift 1
2026: 21 May Shift 1
2026: 29 May Shift 2
2025: 13 May Shift 2