← Quiz: Transactions and ACID: all 10 questions
Quiz: Transactions and ACID · Question 8 of 10
T1 runs SELECT COUNT() FROM orders WHERE amount 1000 twice and gets 5, then 6, because T2 inserted a row in between. Th…
T1 runs SELECT COUNT(*) FROM orders WHERE amount > 1000 twice and gets 5, then 6, because T2 inserted a row in between. This is a:
- A.Phantom read
- B.Dirty read
- C.Lost update
- D.Non-repeatable read of the same row
Answer & explanation
Correct answer: Phantom read
New rows appearing in a repeated query are phantoms.
Can you get the rest right without peeking?
Take the timed Quiz: Transactions and ACID quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →