Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is for MySQL First, review the database schema, for each one of the arrows in the diagram, you will create a foreign key on

This is for MySQL

image text in transcribed

First, review the database schema, for each one of the "arrows" in the diagram, you will create a foreign key on the relevant table. EMPLOYEE Fname Minit Lname Bdate Address Sex Salary Super_ssn Dno Ssn AAAA DEPARTMENT Dname Dnumber Mgr_ssn Mgr_start_date A DEPT_LOCATIONS Dnumber Dlocation PROJECT When creating the foreign keys, you must make sure of the following additional requirements: An employee cannot be deleted if there's a dependent or if the employee is working on a project. Pname Pnumber Plocation Dnum WORKS ON Essn Pno Hours DEPENDENT Essn Dependent_name If an employee is deleted and the employee is the manager of a department or supervisor of another employee, the DBMS should change the relevant attributes to NULL on the child relations. Sex Bdate Relationship If a department is deleted, all department locations must be deleted as well, however, a department MUST NOT be deleted if there's any project or employee assigned to that department

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

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions

Question

What is the principle of thermodynamics? Explain with examples

Answered: 1 week ago

Question

Explain the strength of acid and alkali solutions with examples

Answered: 1 week ago