Question: Assume the Branch table contains a column called TotalValue that represents the total price for all books at that branch. Following the style shown in
a. When inserting a row in the Copy table, add the price to the total value for the appropriate branch.
b. When updating a row in the Copy table, add the difference between the new price and the old price to the total value for the appropriate branch.
c. When deleting a row from the Copy table, subtract the price on the record being deleted from the total value for the appropriate branch.
Step by Step Solution
3.43 Rating (156 Votes )
There are 3 Steps involved in it
a DELIMITER CREATE TRIGGERAddTotalValue AFTER INSERT ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (1 attachment)
671-CS-DB (988).docx
120 KBs Word File
