Skip to content

CS Professional · Artificial Intelligence, Data Analytics and Cyber Security - Laws and Practice · Database Management

An IT officer of a firm wants to make permanent all changes made in the current transaction and then wants a later point within an uncommitted transaction to which he can partially roll back. Which pair of SQL (TCL) commands serves these two purposes respectively?

COMMIT and SAVEPOINT are the correct pair. COMMIT permanently saves the transaction's changes, while SAVEPOINT marks an intermediate point inside a transaction so that a partial rollback to that point is possible without undoing the whole transaction.

  1. ACOMMIT and SAVEPOINTCorrect
  2. BGRANT and REVOKE
  3. CROLLBACK and DROP
  4. DINSERT and SAVEPOINT

Explanation

COMMIT makes the changes of the transaction permanent. SAVEPOINT sets a marker inside a transaction so ROLLBACK TO can undo only later work. GRANT and REVOKE are DCL commands, and DROP and INSERT are not transaction control commands.

Did you get it right without looking?

One question tells you little. A timed set on Database Management shows your real accuracy, how long you take and where you lose marks.

More Database Management questions