an you help me with this assignment? *This is the last page (#3 page) INSERT INTO position VALUES (2, 'Manager'); INSERT INTO position VALUES (3, 'Programmer'); INSERT INTO position VALUES (4, 'Accountant'); INSERT INTO position VALUES (5, 'Salesman'); INSERT INTO emplevel VALUES (1, 1, 25000); INSERT INTO emplevel VALUES (2, 25001, 50000); INSERT INTO emplevel VALUES (3, 50001, 100000); INSERT INTO emplevel VALUES (4, 100001, 500000); INSERT INTO qualification VALUES (1, 'Doctorate'); INSERT INTO qualification VALUES (2, 'Masters'); INSERT INTO qualification VALUES (3, 'Bachelors'); INSERT INTO qualification VALUES (4, 'Associates'); INSERT INTO qualification VALUES (5, 'High School'); INSERT INTO dept VALUES (10, 'Finance', 'Charlotte', 123); INSERT INTO dept VALUES (20, 'InfoSys', 'New York', 543); INSERT INTO dept VALUES (30, 'Sales', 'Woodbridge', 135); INSERT INTO dept VALUES (40, 'Marketing', 'Los Angeles', 246); INSERT INTO employee VALUES (111, 'Smith', 'John', 1, NULL, '04/15/1960', 265000, 35000, 10, 1); INSERT INTO employee VALUES (246, 'Houston', 'Larry', 2, 111, '05/19/1967', 150000, 10000, 40, 2); INSERT INTO employee VALUES (123, 'Roberts', 'Sandi', 2, 111, '12/02/1991', 75000, NULL, 10, 2); INSERT INTO employee VALUES (543, 'Dave', 'Derek', 2, 111, '03/15/1995', 80000, 20000, 20, 1); INSERT INTO employee VALUES (433, 'McCall', 'Alex', 3, 543, '05/10/1997', 66500, NULL, 20, 4); INSERT INTO employee VALUES (135, 'Garner', 'Stanley', 2, 111, '02/29/1996', 45000, 5000, 30, 5); INSERT INTO employee VALUES (200, 'Shaw', 'Jinku', 5, 135, '01/03/00', 24500, 3000, 30, NULL); INSERT INTO employee VALUES (222, 'Chen', 'Sunny', 4, 123, '08/15/1999', 35000, NULL, 10, 3); INSERT INTO dependent VALUES (543, 1, '09/28/1958','Spouse'); INSERT INTO dependent VALUES (543, 2, '10/14/1988','Son'); INSERT INTO dependent VALUES (200, 1, '06/10/1976','Spouse'); INSERT INTO dependent VALUES (222, 1, '02/04/1975','Spouse'); INSERT INTO dependent VALUES (222, 2, '08/23/1997','Son'); INSERT INTO dependent VALUES (222, 3, '07/10/1999','Daughter'); INSERT INTO dependent VALUES (111, 1, '12/12/1945','Spouse'); Part A Deliverables [Based on SQL Code above]: Identify Tables, fields, PKs, and FKs. As you know, database Tables are Entities and Fields are Attributes. Create an Entity Relation Diagram (ERD) based on the information. Copy and paste the ERD on the Word document. No need to show all attributes, just show PKs, and FKs for each relation (entity) in the diagram.
can you help me with this assignment?
*This is the last page (#3 page)
INSERT INTO position VALUES (2, 'Manager');
INSERT INTO position VALUES (3, 'Programmer');
INSERT INTO position VALUES (4, 'Accountant'); INSERT INTO position VALUES (5, 'Salesman');
INSERT INTO emplevel VALUES (1, 1, 25000);
INSERT INTO emplevel VALUES (2, 25001, 50000);
INSERT INTO emplevel VALUES (3, 50001, 100000);
INSERT INTO emplevel VALUES (4, 100001, 500000);
INSERT INTO qualification VALUES (1, 'Doctorate');
INSERT INTO qualification VALUES (2, 'Masters');
INSERT INTO qualification VALUES (3, 'Bachelors');
INSERT INTO qualification VALUES (4, 'Associates');
INSERT INTO qualification VALUES (5, 'High School');
INSERT INTO dept VALUES (10, 'Finance', 'Charlotte', 123);
INSERT INTO dept VALUES (20, 'InfoSys', 'New York', 543); INSERT INTO dept VALUES (30, 'Sales', 'Woodbridge', 135);
INSERT INTO dept VALUES (40, 'Marketing', 'Los Angeles', 246);
INSERT INTO employee VALUES (111, 'Smith', 'John', 1, NULL,
'04/15/1960', 265000, 35000, 10, 1);
INSERT INTO employee VALUES (246, 'Houston', 'Larry', 2, 111,
'05/19/1967', 150000, 10000, 40, 2);
INSERT INTO employee VALUES (123, 'Roberts', 'Sandi', 2, 111,
'12/02/1991', 75000, NULL, 10, 2);
INSERT INTO employee VALUES (543, 'Dave', 'Derek', 2, 111,
'03/15/1995', 80000, 20000, 20, 1);
INSERT INTO employee VALUES (433, 'McCall', 'Alex', 3, 543,
'05/10/1997', 66500, NULL, 20, 4);
INSERT INTO employee VALUES (135, 'Garner', 'Stanley', 2, 111,
'02/29/1996', 45000, 5000, 30, 5);
INSERT INTO employee VALUES (200, 'Shaw', 'Jinku', 5, 135,
'01/03/00', 24500, 3000, 30, NULL);
INSERT INTO employee VALUES (222, 'Chen', 'Sunny', 4, 123,
'08/15/1999', 35000, NULL, 10, 3);
INSERT INTO dependent VALUES (543, 1, '09/28/1958','Spouse');
INSERT INTO dependent VALUES (543, 2, '10/14/1988','Son');
INSERT INTO dependent VALUES (200, 1, '06/10/1976','Spouse');
INSERT INTO dependent VALUES (222, 1, '02/04/1975','Spouse');
INSERT INTO dependent VALUES (222, 2, '08/23/1997','Son');
INSERT INTO dependent VALUES (222, 3, '07/10/1999','Daughter'); INSERT INTO dependent VALUES (111, 1, '12/12/1945','Spouse');
Part A Deliverables [Based on SQL Code above]:
- Identify Tables, fields, PKs, and FKs. As you know,
database Tables are Entities and Fields are Attributes. Create an Entity Relation Diagram (ERD) based on the information. Copy and paste the ERD on the Word document. No need to show all attributes, just show PKs, and FKs for each relation (entity) in the diagram.

![Dentlang
VARCHAR (12) NOT NULL
VARCHAR (15),
EvolovecId INT,
CONSTRAINT dentdentidark PRIMARY KEY (DeptId) L:
Location
Code for Creation of Tables where Fields, Primary Keys,
and Foreign Keys are defined (Keyword CONSTRAINT). Note
that FOREIGN KEY also establishes referential integrity.
CREATE TABLE employee
(Eunlovestd
INT,
VARCHAR (15) CONSTRAINT epploveRalaanen NOT NULL,
VARCHAR (15) CONSTRAINT eploves.fnanea NOT NULL,
INT,
INT,
EDaue
Positionid
Supervisor
tirebats
Salary
Commission
DATE,
Decimal,
Decimal,
Dentid
Qualid
CONSTRAINT eunloveRAARleKEeidok
INT NOT NULL,
INT,
PRIMARY KEY (Ęmplovectd) ,
CONSTRAINT euplovefaRRSitienihtk FOREIGN KEY (Pesitionntd
REFERENCES position (Positnd),
CONSTRAINT eulovARadertidtk FOREIGN KEY (BeptJd)
REFERENCES dept (DeptId) ,
CONSTRAINT euoloveRAHALidtk FOREIGN KEY (Qualid)
REFERENCES qualification (Qualtd) Li
CREATE TABLE dependent
(Euploveeid
DepeodentJd INT,
DepDOB-
Relation
INT,
DATE,
VARCHAR (8),
CONSTRAINT dependentarnriddenidak PRIMARY KEY (EWplovsstd, Dependent
CONSTRAINT dependentarurlexeeidatk FOREIGN KEY (EUplovesid)
REFERENCES employee (EuplovRAtd) E
Adding Foreign Key after creation of table [ALTER TABLE
command is used].
ALTER TABLE employee
ADD CONSTRAINT ewploveraURArxisecafk FOREIGN KEY(Supervisor)
REFERENCES emplovee(Emp]ovKRRId);
Creating Data and storing them into respective tables
[INSERT INTO command is used].
INSERT INTO position VALUES (1, 'President'L](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F195a7766-dcee-4fa6-95dc-7984824ee437%2F874f3cb7-4819-4315-b45c-17516b65b6d8%2Fxgwy4h_processed.png&w=3840&q=75)

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images









