Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

Differentiate 3sin(9x+2x)

Answered: 1 week ago

Question

Compute the derivative f(x)=(x-a)(x-b)

Answered: 1 week ago