Ms Ritika wants to delete the table 'sports' permanently. Help her in selecting the correct SQL command from the following.
Ms Ritika wants to delete the table 'sports' permanently. Help her in selecting the correct SQL command from the following.
Solution
DROP TABLE removes a table permanently from the database, deleting both its structure (columns, constraints) and all its data. The correct syntax is , 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.
Related questions:
2025: 20 May Shift 1
2025: 27 May Shift 2
2025: 13 May Shift 2
2025: 13 May Shift 2
2025: 14 May Shift 1