subject

Sometimes a database may have a separate table to log certain activities taking place in the database. create a new table named ‘changelog’ in the northwind database as follows: changeid int identity(1,1) primary key empid int (will contain the id of the employee being changed) user nvarchar(30) (will contain the login of the user making the change) date smalldatetime (will contain the date of the change) oldrate money (will contain the old payrate of the employee) newrate money (will contain the new payrate of the employee) you also need to alter the employees table and add a payrate column and set a pay rate for the employees. create trigger payrate_change on employees for update as if update (payrate) after creating the changelog table, create a trigger on the employees table for update. use this trigger to monitor the payrate column, and if the payrate of an employee gets changed, have the trigger insert a row into the changelog table with the appropriate data. [use the function suser_sname() to get the user making the change and insert this into the user column.] two good resources to look at:

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 22:30
Alex’s family members live in different parts of the world. they would like to discuss the wedding plans of one of their distant relatives. however, alex wants all the family members to talk to each other simultaneously so that they can make decisions quickly. which mode of internet communication should they use? a. blog b. email c. wiki d. message board e. instant messaging
Answers: 2
question
Computers and Technology, 23.06.2019 00:10
My has been slow anyone else’s ?
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Write the html code to make a link out of the text “all about puppies”. it should link to a pdf called “puppies.pdf” inside the “documents” folder. the pdf should open in a new window.
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
You know the right answer?
Sometimes a database may have a separate table to log certain activities taking place in the databas...
Questions
question
Mathematics, 14.02.2022 20:10
question
Health, 14.02.2022 20:20
question
Chemistry, 14.02.2022 20:20
question
Mathematics, 14.02.2022 20:20
question
Mathematics, 14.02.2022 20:20
question
Mathematics, 14.02.2022 20:20
question
Mathematics, 14.02.2022 20:20
Questions on the website: 13722367