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)

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter13: Views
Section: Chapter Questions
Problem 7MC
icon
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
steps

Step by step

Solved in 2 steps with 6 images

Blurred answer
Knowledge Booster
SQL Query
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
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