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 transfer ₹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 state of the database just after step 3 but before step 5?

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

Show answer & explanation

Correct answer: B. May be temporarily inconsistent

Explanation

After Write(A) but before B is updated, ₹50 has left A without reaching B, so the database is temporarily inconsistent; it becomes consistent again when the transaction completes.

More Database Management Systems questions