Answered step by step
Verified Expert Solution
Link Copied!

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

Q2.(25 points) Row level Trigger.
This question requires to create a row level trigger named Emply_Row on table Employees.
First, you will create a table called Emply_log 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 Emply_log for each record changed.
Below are the codes for creating a new log table called Emply_logThe second step requires you to create a row level trigger named Emply_Row 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 Emply_log for each record updated.
After having successfully compiled the trigger, your program will run two update commands (as step three).In the fourth step, you should check the contents of Emply_log 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 Emply_Row;
image text in transcribed

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

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions