All mock tests are FREE till 31 December — register to save your progress
Unit 4 · Database Management Systems Paper 2 CS · December 2022 Shift 1

Let T1 be a transaction that transfers Rs. 50 from account A to account B: 1 Read(A); 2 A := A − 50; 3 Write(A); 4 Read(B); 5 B := B + 50; 6 Write(B). What is the status of the database just after the 3rd step but before the 5th step?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. May be temporarily inconsistent

Explanation

After A has been debited but before B is credited, the sum A + B is off by 50. This temporary inconsistency is allowed inside a transaction.

More Database Management Systems questions