Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q 2 . ( 2 5 points ) Row level Trigger. This question requires to create a row level trigger named Emply _ Row on
Q points Row level Trigger.
This question requires to create a row level trigger named EmplyRow on table Employees.
First, you will create a table called Emplylog to store the records from this trigger. Whenever there is a command of Update on the table employees, the trigger will be fired, and add one record into the table Emplylog for each record changed.
Below are the codes for creating a new log table called EmplylogThe second step requires you to create a row level trigger named EmplyRow on table Employees. Whenever there is a command of update on the table employees, the trigger will be fired, and it will add one record into the table Emplylog for each record updated.
After having successfully compiled the trigger, your program will run two update commands as step threeIn the fourth step, you should check the contents of Emplylog table. Copy the output of these new records in the log table to your submission.
Remember to rollback after you get the display of the results: Rollback;
DROP TRIGGER EmplyRow;
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