🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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:

  1. A.Phantom read
  2. B.Dirty read
  3. C.Lost update
  4. 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 →