Answered step by step
Verified Expert Solution
Question
1 Approved Answer
lhe purpose of this assignment is to alter and apply the trigger code to the Person. Person table in the Advcnture Works databasc, First, amend
lhe purpose of this assignment is to alter and apply the trigger code to the Person. Person table in the Advcnture Works databasc, First, amend the trigger code (below) to fire correctly on the "Person.Person" table. Next, apply the trigger code provided below to the "Person.Person" table to track the number of modifications of data for the table. Check that the trigger worked by updating four records in the "Person.Person" table. Create a Word document which includes the altered trigger code, result table, and a screenshot of the fired trigger results Add the "Title" 'Mr.' to Ken J Snchez' . Add the "MiddleName" "Timothy' to 'Michael Raheem . Add thc "Titlc" 'Ms.' and changc thc "MiddlcNamc" to 'llcather' for 'Samantha II Smith' . Add the "Title" 'Mrs.' and change the "I astName" to "Thompson' for 'Iori K Penor' Trigger Code CREATE TRIGGER 1.[trgUpdatedColumns ON [1.I1 FOR UPDATE AS SET NOCOUNT ON DECLARE DECLARE @ AS int, @num-cols AS int aupdCols TABLE (ordinal position int NOT NULL PRIMARY KEY SET @num_cols - SELECT COUNT(*) FROM INFORMATION SCHEMA. COLUMNS WHERE TABLE SCHEMA = AND TABLE NAME') SET @i1 WHILE @i
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