Question: Q2: Multiple users and applications may access and modify the customer database concurrently. Suppose that one application, operating on Machine 1, updates the RentalPlans table

Q2: Multiple users and applications may access and modify the customer database concurrently. Suppose that one application, operating on Machine 1, updates the RentalPlans table with the following code: update RentalPlans set max_movies =100 where name='rental plus'; select from RentalPlans; (a) Write a statement that, when executed concurrently on a different machine, e.g., Machine 2, may cause Machine 1 to experience a lost update. Submit your statement in file Q2a.sql. (b) Rewrite the code for Machine 1 so that the lost update problem does not happen, no matter what might be executed on Machine 2. Submit the revised code in file Q2b.sql
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
