in Databases edited by
6,157 views
5 votes
5 votes

Consider the schema $R (A, B, C, D)$ and the functional dependencies $A\to B$ and $C\to D$.  If the decomposition is made as $R_1(A, B)$ and $R_2 (C, D)$, then which of the following is TRUE?

  1. Preserves dependency but cannot perform lossless join
  2. Preserves dependency and performs lossless join
  3. Does not perform dependency and cannot perform lossless join
  4. Does not preserve dependency but perform lossless join
in Databases edited by
6.2k views

1 comment

Option A ??
0
0

3 Answers

13 votes
13 votes
Best answer
Decomposition is dependency preserving.

It is not lossless as there is no common attribute on which two sub relations can be  joined to get original one

So ans is a

3 Comments

Thank you so much Pooja
0
0

Yes you are correct answer is ' A '

While decomposing a relational table we must verify the following properties:
i) Dependency Preserving Property: A decomposition is said to be  dependency preserving if F+=(F1 ∪ F2 ∪ .. Fn)+, Where F+=total functional dependencies(FDs) on universal relation R, F1 = set of FDs of R1, and F2 = set of FDs of R2.
For the above question R1 preserves A->B and R2 preserves C->D. Since the FDs of universal relation R is preserved by R1 and R2, the decomposition is dependency preserving.

ii) Lossless-Join Property:
The decomposition is a lossless-join decomposition of R if at least one of the following functional dependencies are in F+:-
a) R1 ∩ R2 -> R1
b) R1 ∩ R2 -> R2
It ensures that the attributes involved in the natural join (  ) are a candidate key for at least one of the two relations.In the above question schema R is decomposed into R1 (A, B) and R2(C, D), and R1 ∩ R2 is empty. So, the decomposition is not lossless.
 
5
5
awesome explanation
0
0
5 votes
5 votes
for lossless, after decomposition of relation into 2, if there is any common attribute in the decomposed relations and that attribute is a key in any of the relation then it is lossless - (any decomposition should have a common attribute(s) which is a key in one of the relation)

here no attributes are common in R1 and R2

so this one is not lossless.

for dependency preserving= if we are able to derive the original  dependency from the dependencies of the splited schemas then it is dependency preserving.

here from R1===A->B and from R2====c->D can be derived..

so it is DP

ANS=OPTION A
by

1 comment

nice explanation...
0
0
2 votes
2 votes
option a because before decomposition fd's are equal to after decomposition fd's .but it is not lossless because r1 insection r2=phi
Answer:

Related questions