MIS Week 2 Assignment
MIS Week 2 Assignment
Solution:
Here is the Crow’s Foot notation ERD to support the following business operations
Problem 3.17: For each table, identify the primary key and the foreign key(s). If a table
Solution:
The primary key and the foreign key of the table given below are:
Problem 3.18: Do the tables exhibit entity integrity? Answer yes or no, and then explain
your answer.
Solution:
Yes, the tables exhibit entity integrity. This means that each table has a primary key that
uniquely identifies each row, and that the primary key values are not null. As you can see from
the table definitions and data, each table has a primary key constraint defined on one column,
explain your answer. Write NA (Not Applicable) if the table does not have a foreign key.
Solution:
TRUCK table: Yes, the TRUCK table exhibits referential integrity. This means that the
foreign key values in the TRUCK table match the primary key values in the referenced
tables, or are null. As you can see from the table data, all the values in the BASE_CODE
and TYPE_CODE columns either exist in the BASE and TYPE tables, or are null.
BASE table: NA, the BASE table does not have a foreign key.
TYPE table: NA, the TYPE table does not have a foreign key.
Solution:
The candidate key for the TRUCK table is TRUCK_SERIAL_NUM. A candidate key is
a column or set of columns that uniquely identifies a record See additional data. A table can have
multiple candidate keys. Candidate keys are Unique and refer to the primary key. Because
primary key. So that may be the key to the candidate. So the candidate key for the TRUCK table
is TRUCK_SERIAL_NUM.
Problem 3.21: For each table, identify a superkey and a secondary key.
Solution:
Multiple superkeys can be used. Secondary keys are non-unique keys, secondary key Multiple
TRUCK table: A superkey is any set of columns that contains TRUCK_NUM, since
BASE table: A superkey is any set of columns that contains BASE_CODE, since
superkey. A secondary key is any candidate key that is not the primary key. The BASE
TYPE table: A superkey is any set of columns that contains TYPE_CODE, since
is a superkey. A secondary key is any candidate key that is not the primary key. Since the
TYPE table has only one candidate key, it has no secondary key.
Solution:
Here is the ERD for this database,
References:
01) Merson, P. (2009). Data model as an architectural view(p. 0035). Carnegie Mellon University, Software
Engineering Institute.
02) Coronel, C., & Morris, S. (2018). Database systems: design, implementation, and management
(13th ed.). Cengage Learning.