Question: Create the SQL code for each of the tables Create Tables - NOTE: Replace the x with your initials in lowercase. Table Name:

Create the SQL code for each of the tables
Create Tables - NOTE: Replace the "x" with your
initials in lowercase.
Table Name: EMPLOYEE_Xxx
Department Number INT
Table Name: DEPARTMENT_xxx
Attribute Data Type Primary Foreign
Department Name VARCHAR(15)
Department Number INT
Manager SSN CHAR(9)
Employee (SSN)
Constraint
NOT NULL
NOT NULL
ON DELETE SET
NULL
Manage Start Date DATE
Table Name: DEPT_LOCATION_xxx
Attribute Data Type Primary Foreign
Department Number INT
Department (DepNo) ON
DELETE CASCADE
Table Name: PROJECT_Xxx
Attribute Data Type Primary Foreign
Constraint
NOT NULL
Project Name
VARCHAR(15) UNIQUE
NOT NULL
Project Number
INT
Constraint
NOT NULL
Project Location VARCHAR(15)
NOT NULL
Department Number INT
Department (DepNo)
Table Name: PROJECT_ASSIGNMENT_xxx
Attribute Data Type Primary Foreign Constraint
Employee SSN CHAR(9), Employee (SSN) ON , NOT NULL
DELETE CASCADE
Project Number INT
Project (PNumber) ON
NOT NULL
DELETE CASCADE
Hours
DECIMAL (3,1)
NOT NULL
 Create the SQL code for each of the tables Create Tables

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!