Skip to main contentSkip to solution

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.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question