Easy1 markMultiple Choice
Area I: Information SystemsData ManagementSQL

CPA · Question 23 · Area I: Information Systems

Which of the following SQL commands is used to remove a table and all its data permanently from the database?

Answer options:

A.

DELETE FROM table_name

B.

DROP TABLE table_name

C.

TRUNCATE TABLE table_name

D.

REMOVE TABLE table_name

How to approach this question

Distinguish between removing data (DELETE/TRUNCATE) and removing the object itself (DROP).

Full Answer

B.DROP TABLE table_name✓ Correct
B
DROP TABLE is a DDL (Data Definition Language) command that removes the table definition and all its data. DELETE and TRUNCATE are used to remove data while keeping the table structure.

Common mistakes

Confusing DELETE (rows) with DROP (object).

Practice the full CPA ISC Practice Exam 3

82 questions · hints · full answers · grading

More questions from this exam