Home » Database » Database miscellaneous » Question

Database miscellaneous

  1. Consider the following relational schemas for a library database:
    Book (Title, Author, Catalog_no, Publisher, Year, Price)
    Collection (Title, Author, Catalog_no)
    within the following functional dependencies
    1. Title, Author → Catalog_no
    2. Catalog_no → Title Author Publisher Year
    3. Publisher Title Year → Price
    Assume {Author, Title} is the key for both schemas. Which of the following statements is true?
    1. Both Book and Collection are in BCNF
    2. Both Book and Collection are in 3 NF only
    3. Book is in 2 NF and Collection is in 3 NF
    4. Both Book and Collection are in 2 NF only
Correct Option: C

We will observe that if all the non-key fields are fully dependent on a whole key then a table would be formed in the Second normal form (2NF).
This table will be in 3NF only when non-key fields are independent on a whole key then a table.
Alternatively, Relation Book: transitivity dependency by 1, 2, 3 statements as given, hence, the relation Book is in 2NF. Relation Collection L: it is in 3 NF as there is fully transitive dependency.
Therefore Book is in 2NF and Collection is in 3NF.



Your comments will be displayed only after manual approval.