ago
31 views
0 0 votes

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?

  1. If $C$ is a candidate key for $R_1$, the decomposition is lossless.
     
  2. For the decomposition to be lossless, tuples of $R_1$ and $R_2$ must always match one-to-one.
     
  3. If the decomposition is lossy, joining the projections can produce extra tuples not present in $R$.
     
  4. Even for a lossless decomposition, both projections can contain fewer tuples than the original relation.

1 Answer

0 0 votes

The common attributes are $R_1\cap R_2=\{C\}$.


Consider A.

If $C$ is a candidate key of $R_1$, then $C\to ACD$.

Thus, $(R_1\cap R_2)\to R_1$.

Therefore, the binary decomposition is lossless.

So A is correct.


Consider B.

A lossless join does not require a one-to-one correspondence between tuples.

One tuple in one component may correctly join with several tuples in the other component.

The important condition is that the join reconstructs exactly the original relation.

So B is incorrect.


Consider C.

A lossy decomposition can generate spurious tuples during the natural join.

Thus the join may contain tuples that were not in the original relation.

So C is correct.


Consider D.

Projection removes attributes and, under relational set semantics, duplicate projected tuples collapse into one tuple.

Therefore, a projected relation can have fewer tuples than the original relation even when the decomposition is lossless.

Hence D is correct.

ago
Answer:
Position:
Show:

Related questions

0 0 votes
1 1 answer
31
31 views
GO Classes asked 19 hours ago
31 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...
0 0 votes
1 1 answer
27
27 views
GO Classes asked 19 hours ago
27 views
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?The decompositi...
0 0 votes
1 1 answer
46
46 views
GO Classes asked 19 hours ago
46 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...
1 1 vote
1 1 answer
90
90 views
GO Classes asked 1 day ago
90 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 ...