Question: Create a table named ProductsAudit. This table should have all columns of the Products table, except the Description column. Also, it should have an AuditID
Create a table named ProductsAudit. This table should have all columns of the Products table, except the Description column. Also, it should have an AuditID column for its primary key, and the DateAdded column should be changed to DateUpdated. Create a trigger named Products_UPDATE. This trigger should insert the old data about the product into the ProductsAudit table after the row is updated. Then, test this trigger with an appropriate UPDATE statement.
These are the columns of the Products table:

*should be done in Microsoft SQL Server Mangement
Edbo.Products Columns ProductID (PK, int, not null) o CategorylD (FK, int, null) ProductCode (varchar(10), not null) ProductName (varchar(255), not null) Description (text, not null) istPrice (money, not null DiscountPercent (money, not null) DateAdded (datetime, null) Edbo.Products Columns ProductID (PK, int, not null) o CategorylD (FK, int, null) ProductCode (varchar(10), not null) ProductName (varchar(255), not null) Description (text, not null) istPrice (money, not null DiscountPercent (money, not null) DateAdded (datetime, null)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
