Consider the following relational schemes for a library database:
Book (Title, Author, Catalog_no, Publisher, Year, Price) Collection(Title, Author, Catalog_no)
with the following functional dependencies:
Assume is the key for both schemes. Which of the following statements is ?
View worked solution
Answer: C
To determine the normal form of the relations, we first identify the candidate keys for both schemas.
1. Candidate Keys for Book:
- Given that is a key, we have:
- Using FD (II), , we also find:
Thus, the candidate keys for Book are and .
- Prime attributes:
- Non-prime attributes:
2. Normal Form of Book:
- Consider the FD: . The LHS is not a superkey, and the RHS () is a non-prime attribute. This violates 3NF.
- To check for 2NF, we look for partial dependencies (proper subset of a candidate key non-prime attribute). The proper subsets of candidate keys are and . Neither of these determines any non-prime attribute. Thus, there is no partial dependency, meaning
Bookis in 2NF.
3. Normal Form of Collection:
- The attributes are .
- The applicable FDs are:
- Since the LHS of both functional dependencies are candidate keys,
Collectionis in BCNF, which implies it is also in 3NF.
Therefore, Book is in 2NF and Collection is in 3NF.
Free practice · Your answers on this page are not saved.
