Assume the Branch table contains a column called TotalValue that represents the total price for all books

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 the text, write the code for the following triggers.
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.
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Concepts of Database Management

ISBN: 978-111182591

7th edition

Authors: Philip J. Pratt, Joseph J. Adamski

Question Posted: