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.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images