Question: Create a database following the relations given below. Be sure to specify any constraints. Then use the given code to insert items into your database.
Create a database following the relations given below. Be sure to specify any constraints. Then
use the given code to insert items into your database. For this question, submit an SQL code file,
and a screen shot of the ERD created by XAMPP.
Populate Database:
INSERT INTO Dept VALUES Accountingnull;
INSERT INTO Dept VALUES Researchnull;
INSERT INTO Dept VALUES Computer Sciencenull;
INSERT INTO Worker VALUES'Smith','Tom',
'Computer Science';
INSERT INTO Worker VALUES'Jones','Rachel',
'Accounting';
INSERT INTO Worker VALUES'Burns','Jane',
'Accounting';
INSERT INTO Worker VALUES KranzAmanda
Computer Science;
INSERT INTO Worker VALUES'Lewis','Michael',
'Research';
INSERT INTO Worker VALUES'Chin','Lauren',
'Research';
UPDATE Dept SET mgrId WHERE deptName 'Accounting';
UPDATE Dept SET mgrId WHERE deptName 'Research';
UPDATE Dept SET mgrId WHERE deptName Computer Science;
INSERT INTO Project VALUES 'Jupiter', ;
INSERT INTO Project VALUES 'Saturn', ;
INSERT INTO Project VALUES 'Mercury', ;
INSERT INTO Project VALUES 'Neptune', ;
INSERT INTO Project VALUES 'Pluto', ;
INSERT INTO Project VALUES Venus;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
