Back to the 2024 paper

Unit 2: Relational Query Languages

20242m

Which command is used to remove a relation from SQL?

  • (i) Drop table 
  • (ii) Delete 
  • (iii) Purge 
  • (iv) Remove
Worked SolutionAI Assisted

Answer: (i) Drop table

Explanation: DROP TABLE removes relation schema and data completely from database. DELETE without WHERE deletes all rows but keeps structure (DML). PURGE is Oracle extension to permanently remove from recyclebin. REMOVE is not SQL standard.

Similar questions

AI LearningWeb Platform

Coursify — Personal AI Course Generator

Struggling with a difficult subject or concept? Turn any engineering topic into a structured course with interactive lessons, quizzes, and research-backed explanations.