0% found this document useful (0 votes)
69 views4 pages

CSC263 Lab2

This document contains instructions for a database systems lab assignment. The assignment involves analyzing database schemas and relationships from two figures - Figure 1 containing tables STORE, REGION, and EMPLOYEE, and Figure 2 containing tables EMPLOYEE, BENEFIT, JOB, and PLAN. Students are asked to identify primary keys and foreign keys, draw entity relationship diagrams and relational diagrams, and analyze entity and referential integrity for the tables. They are also asked questions about the relationships between the tables.

Uploaded by

goflux pwns
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views4 pages

CSC263 Lab2

This document contains instructions for a database systems lab assignment. The assignment involves analyzing database schemas and relationships from two figures - Figure 1 containing tables STORE, REGION, and EMPLOYEE, and Figure 2 containing tables EMPLOYEE, BENEFIT, JOB, and PLAN. Students are asked to identify primary keys and foreign keys, draw entity relationship diagrams and relational diagrams, and analyze entity and referential integrity for the tables. They are also asked questions about the relationships between the tables.

Uploaded by

goflux pwns
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Computer Science Department

cs.salemstate.edu

Fatema Nafa Spring, 2020


CSC263: Database Systems

CSC263: Lab 02

Requirements:

Part 1:

Figure 1

1. From Figure 1, for each table, identify the primary key and the foreign key(s). If a table does not have a
foreign key, write None in the space provided.

TABLE PRIMARY KEY FOREIGN KEY(S)

2. Do the tables exhibit entity integrity? Answer yes or no and then explain your answer.

TABLE ENTITY INTEGRITY EXPLANATION


Computer Science Department
cs.salemstate.edu

Fatema Nafa Spring, 2020


CSC263: Database Systems

3. Do the tables exhibit referential integrity? Answer yes or no and then explain your answer. Write NA (Not
Applicable) if the table does not have a foreign key.

TABLE REFERENTIAL INTEGRITY EXPLANATION

4. Describe the type(s) of relationship(s) between STORE and REGION.

5. Create the ERD to show the relationship between STORE and REGION.

6. Create the relational diagram to show the relationship between STORE and REGION.

7. Describe the type(s) of relationship(s) between EMPLOYEE and STORE. (Hint: Each store employs many
employees, one of whom manages the store.)

8. Draw the ERD to show the relationships among EMPLOYEE, STORE, and REGION.

9. Create the relational diagram to show the relationships among EMPLOYEE, STORE, and REGION.

Part 2:
Use the database shown in Figure 2 to work Problems 10−16. Note that the database is composed
of four tables that reflect these relationships:
• An EMPLOYEE has only one JOB_CODE, but a JOB_CODE can be held by many
EMPLOYEEs.
• An EMPLOYEE can participate in many PLANs, and any PLAN can be assigned to many
EMPLOYEEs.
Note also that the M: N relationship has been broken down into two 1:M relationships for which
the BENEFIT table serves as the composite or bridge entity.
Computer Science Department
cs.salemstate.edu

Fatema Nafa Spring, 2020


CSC263: Database Systems

Figure 2

10. For each table in the database, identify the primary key and the foreign key(s). If a table does not have a
foreign key, write None in the assigned space provided.

TABLE PRIMARY KEY FOREIGN KEY(S)


EMPLOYEE
BENEFIT
JOB
PLAN

11. Create the ERD to show the relationship between EMPLOYEE and JOB.

12. Create the relational diagram to show the relationship between EMPLOYEE and JOB.

13. Do the tables exhibit entity integrity? Answer yes or no and then explain your answer.

TABLE ENTITY INTEGRITY EXPLANATION


EMPLOYEE
BENEFIT
JOB
PLAN
Computer Science Department
cs.salemstate.edu

Fatema Nafa Spring, 2020


CSC263: Database Systems

14. Do the tables exhibit referential integrity? Answer yes or no and then explain your answer. Write NA (Not
Applicable) if the table does not have a foreign key.

TABLE REFERENTIAL INTEGRITY EXPLANATION


EMPLOYEE
BENEFIT
JOB
PLAN

15. Create the ERD to show the relationships among EMPLOYEE, BENEFIT, JOB, and PLAN.

16. Create the relational diagram to show the relationships among EMPLOYEE, BENEFIT, JOB, and PLAN.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy