Skip to main contentSkip to solution

Ms Ritika wants to delete the table 'sports' permanently. Help her in selecting the correct SQL command from the following.

Solution

✅ Correct Option: 3

DROP TABLE removes a table permanently from the database, deleting both its structure (columns, constraints) and all its data. The correct syntax is DROP TABLE table_name;\text{DROP TABLE table\_name;}, so the command is DROP TABLE SPORTS;


Option 1: DELETE FROM removes only the rows. The empty table and its structure remain.

Option 2: DROP must be followed by the object type (TABLE), so this is invalid syntax.

Option 4: DELETE * FROM is not valid SQL, and even DELETE FROM would only remove rows, not the table.

DELETE removes data, DROP removes the table itself.

Keyboard Shortcuts

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