Question No. 5
CLO-4
PLO-3
C
20 Marks
Suppose, an application needs to insert new brands into the production.brands table. However, the new brands should be stored in another table called production.brand_approvals for approval before inserting into the production.brands table. Create a trigger to do the above task. Hint: To accomplish this, you create a view called production.vw_brands for the application to insert new brands. If brands are inserted into the view, an INSTEAD OF trigger will be fired to insert brands into the production.brand_approvals table. You can create the view using the following example syntax: CREATE VIEW EmployeeComplete AS SELECT * FROM Person JOIN Employee ON ID = PersonID.