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.
- ACOMMIT and SAVEPOINTCorrect
- BGRANT and REVOKE
- CROLLBACK and DROP
- 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
- Referential integrity in a relational database ensures that:
- A bank encrypts the customer table in its database so that data files stolen from the server cannot be read without a key. This control main…
- In the three-schema architecture of a DBMS, which level describes how data is physically stored on disk, including file organisation and ind…
- A bank's database has entities Customer and Account. One customer may hold many accounts, but each account belongs to exactly one customer. …
- In a relational database table, a column (or set of columns) chosen to uniquely identify each row, which cannot hold NULL values and cannot …
- A telecom company handles huge call-record streams arriving at high speed, in text, audio and log formats, from many sources. Which set of c…