Answered You can hire a professional tutor to get the answer.

QUESTION

Create a trigger named Product_UPDATE that checks the new value for the DiscounttPercent column of the Product table.

Create a trigger named Product_UPDATE that checks the new value for the DiscounttPercent column of the Product table. This trigger should raise an appropriate error if the discount percent is greater than 100 or less than 0.

If the new discount percent is between 0 and 1, this trigger should modify the new discount by multiplying it by 100. That way, a discount percent of 2 becomes 20.

Test this trigger with an appropriate UPDATE statement.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question