83 views
1 1 vote

Consider $R(A,B,C,D,E)$ with $F=\{A\to E,\ EC\to BD,\ D\to C\}$. The candidate keys are $AC$ and $AD$. Which decomposition correctly removes the $\text{2NF}$ violation?

  1. $R_1(A,E)$ and $R_2(A,B,C,D)$
     
  2. $R_1(A,B,E)$ and $R_2(C,D)$
     
  3. $R_1(A,C,E)$ and $R_2(A,B,D)$
     
  4. No decomposition is required

1 Answer

1 1 vote

The candidate keys are $AC$ and $AD$.

Therefore, $A$ is a proper subset of both candidate keys.

Now consider $A\to E$.

$E$ does not belong to either candidate key, so $E$ is non-prime.

Thus, $A\to E$ is a partial dependency of a non-prime attribute on a proper subset of candidate keys.

This violates $\text{2NF}$.

Separate this dependency into $R_1(A,E)$.

Keep $A$ in the remaining relation so that the decomposition is $R_2(A,B,C,D)$.

Hence, $R_1(A,E)$ and $R_2(A,B,C,D)$ correctly remove the 2NF violation.

Therefore, the correct answer is A.

Answer:
Position:
Show:

Related questions

2 2 votes
1 1 answer
116
116 views
GO Classes asked Sep 17
116 views
Consider $R(A,B,C,D,E,F,G,H,I,J)$ with $F=\{AB\to CD,\ D\to EFG,\ FG\to H,\ A\to I,\ AB\to EG,\ AI\to IJ\}$. The candidate key is $AB$.Which of the following is a valid $...
2 2 votes
1 1 answer
90
90 views
GO Classes asked Sep 17
90 views
Consider $R(A,B,C,D,E,F,G,H,I,J)$ with $F=\{AB\to C,\ A\to DE,\ B\to F,\ F\to GH,\ D\to IJ\}$. The candidate key is $AB$.Which of the following is a valid $\text{2NF}$ de...
1 1 vote
1 1 answer
90
90 views
GO Classes asked Sep 17
90 views
After representing the attributes atomically, consider $\text{Inventory(PartNbr, Warehouse, Location, QOH, Weight, PartColor)}$ with $\text{PartNbr} \to \text{Weight, Par...
1 1 vote
1 1 answer
80
80 views
GO Classes asked Sep 17
80 views
Consider $\text{CLASS(CourseNo, SectionNo, RoomNo, Capacity)}$ with candidate key $\text{(CourseNo, SectionNo)}$ and functional dependency $\text{RoomNo} \to \text{Capaci...