What is a Dirty Read, a Non-repeatable Read, and a Phantom Read, and which isolation levels prevent which?

Last updated 3 July 2026

  • Dirty read: seeing another transaction's uncommitted data that may roll back. Prevented at READ COMMITTED and above.

  • Non-repeatable read: re-reading a row returns a different value after another transaction commits an UPDATE/DELETE. Prevented at REPEATABLE READ and above.

  • Phantom read: re-running a range query returns new rows after another transaction INSERTs matching rows. Prevented only at SERIALIZABLE per the standard (READ UNCOMMITTED allows all three).

  • https://www.postgresql.org/docs/current/transaction-iso.html
  • https://learn.microsoft.com/en-us/sql/odbc/reference/develop-app/transaction-isolation-levels?view=sql-server-ver17
  • https://www.mydbops.com/blog/postgresql-transaction-isolation-levels-guide
  • https://medium.com/@serhatalftkn/understanding-transaction-isolation-levels-in-entity-framework-core-89d8e89f0ec4
  • https://oneuptime.com/blog/post/2026-03-31-mysql-how-to-set-the-transaction-isolation-level-in-mysql/view
  • https://learn.microsoft.com/en-us/sql/connect/jdbc/understanding-isolation-levels?view=sql-server-ver17
  • https://dev.mysql.com/doc/refman/en/innodb-transaction-isolation-levels.html
  • https://medium.com/@mydbopsdatabasemanagement/mysql-isolation-levels-explained-clearly-c52473d6ebe9
All SQL interview questions