Question: Problem 4 : [ 1 0 pts ] create a trigger on Emp table, and fire it on update, insert of the emp table. The

Problem 4:[10 pts] create a trigger on Emp table, and fire it on update, insert of the emp table. The trigger will print out the user who does the modification and the time. The 'user' system variable holds the current user.
Test your trigger by updating the Emp table.
EMP TABLE:
\table[[eid,ename,did,hiredate,salary],[1,Jeff,1,2005-1-1,70000],[2,Susan,2,2005-6-1,50000],[3,Bob,1,2000-1-1,90000],[4,Steve,1,2006-1-1,60000]]
Problem 3: [10pts] Create a row-level trigger on Emp Table such that if its department id(did) gets changed, print out: ename has changed dept from old did to new did.
Problem 4 : [ 1 0 pts ] create a trigger on Emp

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!