Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following relational schema DDL statements and tables. Show the status of each table after each of the following operations: c . Delete the

Consider the following relational schema DDL statements and tables. Show the status of each
table after each of the following operations:
c. Delete the employee whose ID =1 If it is rejected, explain.
EMPLOYEE( EmployeeID, EmployeeName, SupervisorID, DepartmentID)
PROJECT (ProjectID, EmployeeID)
DEPARTMENT( Department ID, DepartmentName)
CREATE TABLE EMPLOYEE
( EmployeeID INT PRIMARY KEY,
EmployeeName VARCHAR(50) NOT NULL,
SupervisorID INT DEFAULT 9,
DepartmentID INT. DEFAULT 6,
FOREIGN KEY (SupervisorID) REFERENCES EMPLOYEE (EmployeeID)
ON DELETE SET DEFAULT,
FOREIGN KEY (DepartmentID) REFERENCES DEPARTMENT(DepartmentID)
ON UPDATE SET NULL);
CREATE TABLE PROJECT (
ProjectID INT PRIMARY KEY,
EmployeeID INT DEFAULT 9,
FOREIGN KEY (EmployeeID) REFERENCES EMPLOYEE (EmployeeID)
ON DELETE SET NULL
ON UPDATE CASCADE );
CREATE TABLE DEPARTMENT(
DepartmentID INT PRIMARY KEY,
DepartmentName VARCHAR(50)
EMPLOYEE
PROJECT
DEPARTMENT
image text in transcribed

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_2

Step: 3

blur-text-image_3

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

Web Database Development Step By Step

Authors: Jim Buyens

1st Edition

0735609667, 978-0735609662

More Books

Students also viewed these Databases questions

Question

Identify and explain the main source(s) of conflict in this case.

Answered: 1 week ago

Question

What is screening control? Provide an example.

Answered: 1 week ago