Question DB-TXN-0077
HardUnder READ COMMITTED, T1 runs SELECT SUM(balance) while T2 transfers money between two accounts and commits mid-way through T1's scan. What might T1 see?
- A.
Always the correct total
- B.
An error
- C.
A dirty read of uncommitted data
- D.
A total that is wrong, since it may read one account before and the other after the transfer
Sign up free to see the answer and a step-by-step explanation.