Question: Employee (eld: integer, eName: varchar (40), phone: char (10), salary: decimal (7, 2)) Works(eld: integer, dld: integer, pctTime: integer) Department (dld: integer, dName: varchar (20),

 Employee (eld: integer, eName: varchar (40), phone: char (10), salary: decimal

Employee (eld: integer, eName: varchar (40), phone: char (10), salary: decimal (7, 2)) Works(eld: integer, dld: integer, pctTime: integer) Department (dld: integer, dName: varchar (20), budget: decimal (8, 2), managerld: integer) Dependent (eld: integer, depName: varchar (40), age: integer, gender: char(1)) Write a trigger called UpdateManager for the Department Table. If the manager ID in the Department table is Updated then the Works table is checked to see if the new manager works for the department he/she is going to manage. If the new manager's employee id is not in the Works table then the id is added with the corresponding did and pct Time set to 100

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 Databases Questions!