Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use the product table from this module (do not modify table or column names) and modify the EventLog trigger that it will store all changed
Use the product table from this module (do not modify table or column names) and modify the EventLog trigger that it will store all changed (deleted or updated) values from the Product table in the ProductHistory table 1. Provide the code of your working trigger (2 points), code you used to create the ProductHistory, table (: points). The code will be copied from your report and tested. Test your code and include your test case in the report (code and screenshots of the results) (1 point for each successful test case). To receive points for testing, the test cases must test different aspects of your code Sample output: Original data in the table PRODUCTIDPRO LISTPRICE CATEGORY 299 Small Chest 300 Wave Cruiser 301 Megaland Play Tent 302 Wind-Up Water Swimmers 303 Garmin Pocket or Vehicle GPS Navigator 99.99 49.99 59.99 609.99 12 SELECT* from ProductHistoryTable: PRODL PRODU... LISTPRICE! CATEGO 12 MODIFD Test update for multiple rows: Update to $55 prices for item 299 to $55 UPDATE SELECT* from EyentLogTable; to show that two rows showing old prices were inserted. uctTable SET ListPrice 55 where IN (299, 302) UPDATE Produc tTable set ListPrice = 55 ere productid in (299,302); electfrom producth storytable; Script Output x Query Result x sQL | All Rows Fetched: 2 in 0.004 seconds PRODUCTIDPRO YMODIFDATE 10 06.01.2018:16:36:59 11 06.01.2018:16:36:59 LISTPRICE CATEGORY 299 Small Chest 99.99 302 Wind-Up Water Swimmers
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started