Knowee
Questions
Features
Study Tools

Consider the universal relation R = {A, B, C, D, E, F, G, H, I, J} and the set of functional dependencies F = { {A, B}→{C}, {A}→{D, E}, {B}→{F}, {F}→{G,H}, {D}→{I, J} }. What is the key for R? Decompose R into 2NF and then 3NF relation

Question

Consider the universal relation R = {A, B, C, D, E, F, G, H, I, J} and the set of functional dependencies F = { {A, B}→{C}, {A}→{D, E}, {B}→{F}, {F}→{G,H}, {D}→{I, J} }. What is the key for R? Decompose R into 2NF and then 3NF relation

🧐 Not the exact question you are looking for?Go ask a question

Solution

To find the key for R, we need to find the attribute(s) that can uniquely determine all other attributes in the relation.

Step 1: Find the closure of each attribute.

  • Closure of A: {A, D, E, I, J}
  • Closure of B: {B, F, G, H}
  • Closure of A, B: {A, B, C, D, E, F, G, H, I, J}

From the above, we can see that {A, B} is the key for R because it can determine all other attributes in the relation.

Step 2: Decompose R into 2NF relations.

A relation is in 2NF if it is in 1NF and no non-prime attribute is dependent on any proper subset of any candidate key of the relation.

From the given functional dependencies, we can decompose R into the following 2NF relations:

  • R1(A, B, C)
  • R2(A, D, E)
  • R3(B, F)
  • R4(F, G, H)
  • R5(D, I, J)

Step 3: Decompose the 2NF relations into 3NF relations.

A relation is in 3NF if it is in 2NF and every non-prime attribute of R is non-transitively dependent on every key of R.

All the 2NF relations are already in 3NF because there is no transitive dependency in any of the relations. So, the 3NF relations are the same as the 2NF relations:

  • R1(A, B, C)
  • R2(A, D, E)
  • R3(B, F)
  • R4(F, G, H)
  • R5(D, I, J)

This problem has been solved

Similar Questions

There exists only one possible 3NF decomposition for any relation schema and any set of functional dependencies.Question 4Select one:TrueFalse

Consider relation R(A,B,C,D,E) with functional dependencies:D -> C, CE -> A, D -> A, AE -> DWhich of the following is a key?CDEABCECE

The relation R(A,B,C,D,E,F) with functional dependency set F = {AB -> CD, C -> CA, B -> E, D -> B, E -> F}The number of candidate keys of a relation R is ______.

Consider relation StudentInfo(sID, name, dorm, major) with functional dependency sID → name and multivalued dependency sID ↠ dorm. What schema would be produced by the 4NF decomposition algorithm?

Consider a relation R=(M, N, O, P, Q) with the dependencies: {M,N ->O; O,P->Q ; P, Q-> N}. The key for relation R is :a.M, N, Ob.M, N, Pc.N, O, Pd.M, N

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.