CS FundamentalsEasyWipro · Cognizant pattern
Transaction T2 reads a value that T1 has written but not yet committed; T1 later rolls back. What is this anomaly called?
- A. Non-repeatable read
- B. Dirty read
- C. Lost update
- D. Phantom read
Correct answer: B. Dirty read
Reading uncommitted data is a dirty read; READ COMMITTED and above prevent it. A non-repeatable read reads committed data that changes between two reads.
More DBMS and SQL questions
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- A candidate key is best described as:
- In an ER diagram, entity sets Student and Course are related by a many-to-many relationship Enrols that has an attribute grade. What is…
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- Which mechanism does a DBMS mainly rely on to guarantee durability of committed transactions?
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…