Create a trigger on product table table to record the insert, update and delete operation. In case of insert the product_log table should have entry for the product In case of delete the product_log table should have entry the deleted record In case of update the product_log table should have entry for the updated values of quantity, discount and price. Product (prod_code, pr_name, price, discount, qty) Customer_log (user_performed_operation,cust_code, operation, old_address,new_address, old_mobile, new_mobile, old_balance, new_balance)
Create a trigger on product table table to record the insert, update and delete operation. In case of insert the product_log table should have entry for the product In case of delete the product_log table should have entry the deleted record In case of update the product_log table should have entry for the updated values of quantity, discount and price. Product (prod_code, pr_name, price, discount, qty) Customer_log (user_performed_operation,cust_code, operation, old_address,new_address, old_mobile, new_mobile, old_balance, new_balance)
Chapter13: Views
Section: Chapter Questions
Problem 7MC
Related questions
Question
Create a trigger on product table table to record the insert, update and delete operation.
In case of insert the product_log table should have entry for the product
In case of delete the product_log table should have entry the deleted record
In case of update the product_log table should have entry for the updated values of quantity,
discount and price.
Product (prod_code, pr_name, price, discount, qty)
Customer_log (user_performed_operation,cust_code, operation, old_address,new_address,
old_mobile, new_mobile, old_balance, new_balance)
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 6 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning