Properties of 'DELETE' and 'TRUNCATE' commands indicate that
A
After the execution of 'TRUNCATE' operation, COMMIT, and ROLLBACK statements cannot be performed to retrieve the lost data, while 'DELETE' allow it
B
After the execution of 'DELETE' and 'TRUNCATE' operation retrieval is easily possible for the lost data
C
After the execution of 'TRUNCATE' operation, COMMIT and ROLLBACK statements can be performed to retrieve the lost data, while 'DELETE' does not allow it
D
After the execution of 'DELETE' and 'TRUNCATE' operation no retrieval is possible for the lost data
Show the worked solution\[\boxed{\text{DELETE: DML, logged, can be rolled back;}\quad \text{TRUNCATE: DDL, auto-commits, cannot}}\](A) DELETE removes rows inside the transaction, so a ROLLBACK (before COMMIT) restores them; TRUNCATE is DDL and commits implicitly, so the data cannot be rolled back — correct.(B) TRUNCATE data cannot be rolled back — incorrect.(C) This swaps the two commands — incorrect.(D) DELETE can be rolled back — incorrect.(In the original ISRO paper, option C repeated option A with the words reordered; it is rewritten here so that exactly one option is right.)Answer: A
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com