Answered step by step
Verified Expert Solution
Link Copied!

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),

image text in transcribed

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

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

Probabilistic Databases

Authors: Dan Suciu, Dan Olteanu, Christopher Re, Christoph Koch

1st Edition

3031007514, 978-3031007514

More Books

Students also viewed these Databases questions

Question

What are the potential downsides to firm growth?

Answered: 1 week ago