Skip to content
Official PYQ · 2008

GATE CS 2008 Q69 — Normal Forms

Explain with AI

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:

  1. Title Author → Catalog_no\text{Title Author }\rightarrow\text{ Catalog\_no}

  2. Catalog_no → Title Author Publisher Year\text{Catalog\_no }\rightarrow\text{ Title Author Publisher Year}

  3. Publisher Title Year→ Price\text{Publisher Title Year}\rightarrow\text{ Price}

Assume { Author, Title }\left\{\text{ Author, Title }\right\} is the key for both schemes. Which of the following statements is true\text{true}?

Choose one option
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 {Author, Title}\{\text{Author, Title}\} is a key, we have: {Author, Title}+={Author, Title, Catalog_no, Publisher, Year, Price}\{\text{Author, Title}\}^+ = \{\text{Author, Title, Catalog\_no, Publisher, Year, Price}\}
  • Using FD (II), Catalog_no→Title, Author, Publisher, Year\text{Catalog\_no} \rightarrow \text{Title, Author, Publisher, Year}, we also find: {Catalog_no}+={Catalog_no, Title, Author, Publisher, Year, Price}\{\text{Catalog\_no}\}^+ = \{\text{Catalog\_no, Title, Author, Publisher, Year, Price}\}

Thus, the candidate keys for Book are {Author, Title}\{\text{Author, Title}\} and {Catalog_no}\{\text{Catalog\_no}\}.

  • Prime attributes: {Author, Title, Catalog_no}\{\text{Author, Title, Catalog\_no}\}
  • Non-prime attributes: {Publisher, Year, Price}\{\text{Publisher, Year, Price}\}

2. Normal Form of Book:

  • Consider the FD: Publisher, Title, Year→Price\text{Publisher, Title, Year} \rightarrow \text{Price}. The LHS is not a superkey, and the RHS (Price\text{Price}) is a non-prime attribute. This violates 3NF.
  • To check for 2NF, we look for partial dependencies (proper subset of a candidate key →\rightarrow non-prime attribute). The proper subsets of candidate keys are {Author}\{\text{Author}\} and {Title}\{\text{Title}\}. Neither of these determines any non-prime attribute. Thus, there is no partial dependency, meaning Book is in 2NF.

3. Normal Form of Collection:

  • The attributes are {Title, Author, Catalog_no}\{\text{Title, Author, Catalog\_no}\}.
  • The applicable FDs are:
    1. Title, Author→Catalog_no\text{Title, Author} \rightarrow \text{Catalog\_no}
    2. Catalog_no→Title, Author\text{Catalog\_no} \rightarrow \text{Title, Author}
  • Since the LHS of both functional dependencies are candidate keys, Collection is 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.

Published
Report a correction
Keep exploringMore Normal Forms questions