Computer Science Assignment | Custom Assignment Help
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. Get Computer Science homework help today.