edited by
20,225 views
53 votes
53 votes

Consider the following database relations containing the attributes

  • Book_id
  • Subject_Category_of_book
  • Name_of_Author
  • Nationality_of_Author

With Book_id as the primary key.

  1. What is the highest normal form satisfied by this relation?

  2. Suppose the attributes Book_title and Author_address are added to the relation, and the primary key is changed to {Name_of_Author, Book_title}, what will be the highest normal form satisfied by the relation?

edited by

5 Answers

–2 votes
–2 votes

lets rename the attributes

a)

Let Bookid=A,subject-category-of-book=B,Name-of-author=C,Nationality-of-Author=D

A is the Pk

hence A+={BCD}

F .D is A->BCD

Since there is  one attributed CK,there is no prime attribute hence,no partial dependency,so Relation is 2NF

No transitive dependency so 3NF

Non trivial dependency A->BCD

LHS is SK (CK is SK too)

So highest form is BCNF

b)Let Book-Title=E

Author-Address=F

CE->ABD ce is PK

There is a non trivial dependency and LHS of which is SK so BCNF.

Related questions

31 votes
31 votes
8 answers
1
Kathleen asked Sep 25, 2014
10,566 views
Which normal form is considered adequate for normal relational database design?$2NF$$5NF$$4NF$$3NF$
24 votes
24 votes
2 answers
3
Kathleen asked Sep 25, 2014
12,786 views
Which of the following statements is true?SLR parser is more powerful than LALRLALR parser is more powerful than Canonical LR parserCanonical LR parser is more powerful t...