Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

5. How do instructional objectives help learning to occur?

Answered: 1 week ago

Question

4. Help trainees set challenging mastery or learning goals.

Answered: 1 week ago