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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

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]:

 

  1. 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.

 

This assignment involves creation of database tables, fields, primary keys (PKs),
foreign keys (FKs), and records on your SQL Server Database using SQL Editor.
Different fields have different data types. For your convenience, common SQL
Data Types are provided below:
Common SQL Server Data Types
Туре
Description
CHAR
Fixed length character string
VARCHAR
Variable length character string
INT
Integer numbers
DECIMAL
Decimal values
DATE
Dates and Times
Part A
Employee Database Script is provided below:
Code for Creation of Tables where Fields and Primary
Keys are defined (Keyword CONSTRAINT).
CREATE TABLE euplevel
(LeveJla
LOUSalark
tiebSalarx Decimal,
CONSTRAINT euplevehalexelneaek PRIMARY KEY (LevelNa) Li
INT,
Decimal,
CREATE TABLE position
(Pesitionid INT,
PosDesa
CONSTRAINT pOSitioraRRsitievidok PRIMARY KEY (Pesitionīd)
VARCHAR (20),
CREATE TABLE qualification
(QualId
QualDesa
CONSTRAINT gyalifisatirrawalihok PRIMARY KEY (QualJd)E
INT,
VARCHAR (20),
CREATE TABLE dept
(Deptid
INT,
Transcribed Image Text:This assignment involves creation of database tables, fields, primary keys (PKs), foreign keys (FKs), and records on your SQL Server Database using SQL Editor. Different fields have different data types. For your convenience, common SQL Data Types are provided below: Common SQL Server Data Types Туре Description CHAR Fixed length character string VARCHAR Variable length character string INT Integer numbers DECIMAL Decimal values DATE Dates and Times Part A Employee Database Script is provided below: Code for Creation of Tables where Fields and Primary Keys are defined (Keyword CONSTRAINT). CREATE TABLE euplevel (LeveJla LOUSalark tiebSalarx Decimal, CONSTRAINT euplevehalexelneaek PRIMARY KEY (LevelNa) Li INT, Decimal, CREATE TABLE position (Pesitionid INT, PosDesa CONSTRAINT pOSitioraRRsitievidok PRIMARY KEY (Pesitionīd) VARCHAR (20), CREATE TABLE qualification (QualId QualDesa CONSTRAINT gyalifisatirrawalihok PRIMARY KEY (QualJd)E INT, VARCHAR (20), CREATE TABLE dept (Deptid INT,
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
Transcribed Image Text: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
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY