105 views
2 2 votes

Consider $R(A,B,C,D)$ with $F=\{B\to C,\ D\to A\}$.

The relation is decomposed into $R_1(B,C)$ and $R_2(A,D)$.

Which of the following statements are correct?

  1. The decomposition is lossy.
     
  2. The decomposition is dependency preserving.
     
  3. $R_1$ is in BCNF.
     
  4. $R_2$ is in BCNF.

1 Answer

1 1 vote

First, $R_1\cap R_2=\varnothing$.

For a binary lossless decomposition, the intersection must determine one of the component relations.

Here the intersection is empty, and no FD allows $\varnothing\to R_1$ or $\varnothing\to R_2$.

Therefore, the decomposition is lossy.

So A is correct.

Now consider dependency preservation.

$B\to C$ is entirely contained in $R_1$.

$D\to A$ is entirely contained in $R_2$.

Therefore, both original FDs can be enforced without joining the relations.

Hence, the decomposition is dependency preserving.

So B is correct.

For $R_1(B,C)$, the non-trivial FD is $B\to C$.

Therefore, $B$ is a key of $R_1$.

Hence $R_1$ is in BCNF.

So C is correct.

Similarly, in $R_2(A,D)$, $D\to A$, so $D$ is a key of $R_2$.

Thus $R_2$ is also in BCNF.

So D is correct.

Therefore, all four statements are correct.

Answer:
Position:
Show:

Related questions

1 1 vote
1 1 answer
105
105 views
GO Classes asked Sep 15
105 views
Consider the binary decomposition$R(A,B,C,D)\to R_1(A,C,D),R_2(B,C)$.Which of the following statements are correct?If $C$ is a candidate key for $R_1$, the decomposition ...
2 2 votes
1 1 answer
130
130 views
GO Classes asked Sep 15
130 views
Consider $R(A,B,C,D,E)$ with $F=\{A\to DE,\ BE\to C,\ D\to B,\ C\to A\}$.The relation is decomposed into $R_1(A,B,C)$ and $R_2(A,D,E)$.Which of the following statements a...
3 3 votes
1 1 answer
256
256 views
GO Classes asked Sep 15
256 views
Consider $X(A,B,C,D,E,F)$ with $F=\{AB\to CD,\ CD\to EF\}$.The relation is decomposed into $X_1(A,B,C,D)$ and $X_2(C,D,E,F)$.Which statement is correct?The decomposition ...
2 2 votes
1 1 answer
117
117 views
GO Classes asked Sep 15
117 views
Consider $R(A,B,C,D,E,F)$ with $F=\{C\to D,\ A\to B,\ B\to EF,\ F\to A\}$.Suppose $R$ is decomposed into $R_1(A,B,D,E)$ and $R_2(A,B,C,F)$. The decomposition is currently...