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 00:50
Is one of the most injurious events that can happen to a person in a crash.
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Jaina and tomas are being considered as new tenants in an apartment. the landlord looks at their creditworthiness because he wants to be sure his new tenant pays the rent on time and in full. the table below summarizes the information that was on their applications. application information questions jaina tomas how many years have you had your job? 5 2 what is your monthly salary? $1,850 $2,500 how many credit cards do you have? 4 1 how much debt do you have? $13,000 $7,000 how many times were you late with payments on credit cards in the past year? 5 1 who will the landlord decide to be more creditworthy and why? tomas because the ratio of his debt to income is less. jaina because she has had her job longer, which makes her look more stable. jaina because she has more credit cards available to her. tomas because he makes more money per month.
Answers: 2
question
Computers and Technology, 23.06.2019 04:10
2pointswho was mikhail gorbachev? oa. a russian leader who opposed a coupob. a polish leader who founded the labor union "solidarityoc. a soviet leader who called for a closer relationship with the unitedstates, economic reform, and a more open societyd. a soviet leader who called for more oppression in the soviet union
Answers: 3
question
Computers and Technology, 23.06.2019 07:30
Write a program that inserts the digits of an integer into an array in originalorderfollowed by reverse order. first, promptthe user to enter a positive integer(> 0). determine the number of digits of the integer. create a dynamically allocated integer arrayof a size twice the number of digits.now insert the digits in original order which will occupy half of the array. then, insert the digits in reverse order.finally, output thedigits in thearray.use at least two functions to organize your program.
Answers: 3
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, 10.06.2020 22:57
Questions on the website: 13722362