Question: 1 . Consider the following SQL code that updates 3 tables and answer A & B: BEGIN TRANSACTION Start transaction INSERT INTO INVOICE Add record
Consider the following SQL code that updates tables and answer A & B:
BEGIN TRANSACTION Start transaction
INSERT INTO INVOICE Add record to invoice
INVNUM, INVDATE, ACCNUM, TOTAL
VALUES MAR;
UPDATE INVENTRY Update the quantity on hand of the
SET ONHAND ONHAND product
WHERE PRODCODE TYX;
UPDATE ACCREC Update the customer balance
SET BALANCE BALANCE account
WHERE ACCNUM ;
COMMIT;
A How would you change the code to achieve Pessimistic but Not Phase Locking?
B How would you change the code to achieve Pessimistic Phase Locking protocol?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
