Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 (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
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