Practice mode DBMS and SQL

Which SQL isolation level is the lowest one that prevents dirty reads, meaning reading data written by a transaction that has not yet committed?

Correct answer B. Read Committed

Explanation

The SQL standard defines four isolation levels by the phenomena they forbid. Read Uncommitted permits dirty reads, Read Committed is the first level that forbids them, Repeatable Read also forbids non-repeatable reads, and Serializable forbids all anomalies. Repeatable Read and Serializable prevent dirty reads too, but they are not the lowest. PostgreSQL never allows dirty reads even at Read Uncommitted.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.