Solution for problems I.e and II on exam #3:


e. (10 pts.) Why do we call a relational database management system relational?

A partial answer to this question notes that the only essential structure in a relational database is the table. A full answer notes that a table is a relation, gives a definition of a relation (a subset of a Cartesian product of a series of sets) and makes the connection between relations and tables: that a table can be viewed as a subset of the Cartesian product of underlying domains (the domains that underly the attributes of the table). This question may reappear on the final.


 Problem II:

a. (5 pts.) Write the table as an unnormalized relation, identifying repeating fields. What is the key field of this unnormalized relation?

The form includes the following fields. Repeating fields are identified by an asterisk:

We have the following functional dependencies:

Therefore (OrderNo, ItemCode) is the key.

b. (5 pts.) Normalize the relation of part (a) by removing the repeating fields, and give the resulting tables.

When we do this (the second step in the process of bottom-up design), we get the following two tables:

Note that we retain the key for the repeated items (otherwise, we lose the connection between an order and the items ordered).

c. (10 pts.) Identify partial key and transitive dependencies in the tables of part (b), and arrive at a final relational schema for this form. Do you recognize it from an earlier assignment?