1.

Which of the following statement is true?(a) DELETE does not free the space containing the table and TRUNCATE free the space containing the table(b) Both DELETE and TRUNCATE free the space containing the table(c) Both DELETE and TRUNCATE does not free the space containing the table(d) DELETE free the space containing the table and TRUNCATE does not free the space containing the tableThis question was posed to me in an internship interview.The origin of the question is Basic SQL in division Laying the Foundation of SQL Server

Answer»

Correct CHOICE is (a) DELETE does not free the SPACE CONTAINING the table and TRUNCATE free the space containing the table

The explanation: The SQL TRUNCATE COMMAND is used to delete all the ROWS from the table and free the space containing the table.



Discussion

No Comment Found

Related InterviewSolutions