Question: 8(A) ISOLATION LEVELS Consider a table Item(name,cost) where name is a key. Suppose initially there are two tuples in Item: (A,20) and (B,30). Consider the

8(A) ISOLATION LEVELS Consider a table Item(name,cost) where name is a key. Suppose initially there are two tuples in Item: (A,20) and (B,30). Consider the following two concurrent transactions, each of which runs once and commits. You may assume there are no other transactions in the system and that individual statements execute atomically. T1: begin transaction S1: insert into Item values (C,40) S2: update Item set price = price+30 where name=A commit T2: begin transaction S3: select avg(price) as p1 from Item S4: select avg(price) as p2 from Item commit Suppose that transaction T1 executes with isolation level _serializable_. (a) If transaction T2 also executes with isolation level _serializable_, what are all the possible pairs of values p1 and p2 returned by T2? (b) If transaction T2 executes with isolation level _repeatable read_, what are all the possible pairs of values p1 and p2 returned by T2? (c) If transaction T2 executes with isolation level _read committed_, what are all the possible pairs of values p1 and p2 returned by T2? (d) If transaction T2 executes with isolation level _read uncommitted_, what are all the possible pairs of values p1 and p2 returned by T2?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!