Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 with your
initials in lowercase.
Table Name: EMPLOYEEXxx
Department Number INT
Table Name: DEPARTMENTxxx
Attribute Data Type Primary Foreign
Department Name VARCHAR
Department Number INT
Manager SSN CHAR
Employee SSN
Constraint
NOT NULL
NOT NULL
ON DELETE SET
NULL
Manage Start Date DATE
Table Name: DEPTLOCATIONxxx
Attribute Data Type Primary Foreign
Department Number INT
Department DepNo ON
DELETE CASCADE
Table Name: PROJECTXxx
Attribute Data Type Primary Foreign
Constraint
NOT NULL
Project Name
VARCHAR UNIQUE
NOT NULL
Project Number
INT
Constraint
NOT NULL
Project Location VARCHAR
NOT NULL
Department Number INT
Department DepNo
Table Name: PROJECTASSIGNMENTxxx
Attribute Data Type Primary Foreign Constraint
Employee SSN CHAR Employee SSN ON NOT NULL
DELETE CASCADE
Project Number INT
Project PNumber ON
NOT NULL
DELETE CASCADE
Hours
DECIMAL
NOT NULL
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