Question: Q 4 : [ 2 0 % ] The following tables and transactions are given. INSTOCK table [ [ Pid , Inventory location,productsinStock ]

Q4: [20%] The following tables and transactions are given.
INSTOCK
\table[[Pid,Inventory location,productsinStock],[1,Jeddah,5000],[2,Jeddah,3500],[2,Riyadh,2500],[3,Riyadh,3000],[1,Dammam,1500],[3,Dammam,3000]]
PRODUCT
\table[[Pid,name,price],[1,\table[[Color],[Pencil]],10],[2,Eraser,5],[3,Ink,10]]
\table[[T1,T2,T3],[SELECT productInStock,INSERT INTO INSTOCK,SELECT sum(productinStock)],[FROM INSTOCK,VALUES (1, "Taif", 4000),FROM INSTOCK],[WHERE pid=1,,],[INSERT INTO PRODUCT,,],[VALUES (4, "note book", 3),,],[SELECT productInStock,,],[FROM INSTOCK,,],[WHERE pid=1,,]]
Assumptions:
1- Transaction isolation levels are READ COMMITTED.
2- Individual statements are executed atomically.
Show how non-serializable behavior is exhibited when transactions are executed concurrently.
Decide the minimum isolation levels needed for the transactions to ensure serializable behavior. Justify.
Notes on grading: This question will be graded based on the correct results [5%], correct isolation levels [5%], correct justification(5%, and the quality of the answer [5%].
Q 4 : [ 2 0 % ] The following tables and

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 Programming Questions!