recategorized by
2,047 views
1 votes
1 votes

Consider the following relational schemas for a library database :

Book (Title, Author, Catalog_no, Publisher, Year, Price) Collection(Title, Author, Catalog_no) with the following functional dependencies :

I. Title, Author $\rightarrow$ Catalog_no

II. Catalog_no $\rightarrow$ Title, Author, Publisher, Year

III. Publisher, Title, Year $\rightarrow$ Price Assume (Author, Title) is the key for both schemas. Which one of the following is true ?

  1. Both Book and Collection are in BCNF.
  2. Both Book and Collection are in $3$NF. 
  3. Book is in $2$NF and Collection in $3$NF.
  4. Both Book and Collection are in $2$NF. 
recategorized by

2 Answers

5 votes
5 votes

Answer : Book is in 2NF and Collection in 3NF.

Title, Author --> Catalog_no

Catalog_no --> Title , Author , Publisher , Year
Publisher , Title , Year} --> Price

Title , Author --> Catalog_no

Keys : Author , Title

Now , let's see Book Title , Author , Catalog_no , Publisher , Year , Price 

 [Title , Author]+ --> Title , Author , Catalog_no , Publisher , Year , Price

[Catalog_no]+--> Title , Author , Publisher , Year , Price , Catalog_no

So candidate keys are : Catalog_no , {Title , Author} 

This dependencies , {Publisher , Title , Year} --> Price  has Transitive Dependency.

Book  is in 2NF.

​If we consider collection

There is no partial dependency Here. it is in 2NF 

There is no Transitive dependency Here. it is in 3NF as well as in BCNF.

1 votes
1 votes

In Book Table There is Transitive dependency, Title, Publisher, year are dependent on catalog_no and Price dependent on all the three. so it is in 2NF, But in Collection table no transitive Dependency exists so it is in 3NF.

option is C

Answer:

Related questions

0 votes
0 votes
2 answers
1
3 votes
3 votes
2 answers
4
go_editor asked Jan 6, 2017
5,434 views
Four bits are used for packed sequence numbering in a slinding window protocol used in a computer network. What is the maximum window size?481516