Professional Documents
Culture Documents
DB Managment Ch3
DB Managment Ch3
DB Managment Ch3
1. For each table, identify the primary key and the foreign key(s). If a table does not
have a foreign key, write None.
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
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
REGION NA
Because REGION_CODE values occur more than once in STORE, we may conclude
that eachREGION can contain many stores. But since each STORE is located in only
one REGION, the relationship between STORE and REGION is M:1.
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.
There are TWO relationships between STORE and REGION. The first relationship, expressed
bySTORE employs EMPLOYEE, is a 1:M relationship, because one store can employ many
employees and each employee is employed by one store. The second relationship, expressed
by EMPLOYEEmanages STORE, is a 1:1 relationship, because each store is managed by
one employee and an employee manages only one store
8. Create the ERD to show the relationships among EMPLOYEE, STORE, and REGION.
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.