Answer:
Check the explanation
Step-by-step explanation:
First transaction:
UPDATE Part SET OnHand = OnHand + 7, OnOrder = OnOrder – 7 WHERE Part_ID = 987;
For the part id 987, update OnHand by adding 7 to OnHand and update OnOrder by subtracting 7 from OnOrder.
The current value of OnHand is 12. The current value of OnOrder is 7. After execution of first transaction, the new value of OnHand is 19 and the new value of OnOrder is 0.
Second transaction:
UPDATE Part SET OnHand = OnHand - 4 WHERE Part_ID = 987;
The current value of OnHand for Part_ID = 987is 19. After the update operation, the new value is 15.
UPDATE Part SET OnHand = OnHand - 2 WHERE Part_ID = 989;
The current value of OnHand for Part_ID = 989 is 7. After the update operation, the new value is 5.
UPDATE Part SET OnHand = OnHand + 1 WHERE Part_ID = 57;
The current value of OnHand for Part_ID = 57 is 5. After the update operation, the new value is 6.
The final transaction log after the two transactions can be seen in the attached image below: