• edited by
8,317 views
8 8 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

4 Answers

Best answer
15 15 votes
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
5 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
2 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
2 2 votes
  • R(A, B, C, D)

  • Functional dependencies: A → B, C → D

  • Decomposed into:

    • R₁(A, B)       R₂(C, D)

By Using Lossless Join using Chase Test

  • R₁ and R₂ have no common attribute

  • So, using chase test, we cannot merge any data back

  • So the decomposition is NOT lossles

Dependency Preservation

  • R₁ = (A, B) ⇒ preserves A → B 

  • R₂ = (C, D) ⇒ preserves C → D 

  • Together, the decomposition preserves all FDs given in the question

Not Lossless and  Dependency Preserving

Answer:
Position:
Show:

Related questions

14 14 votes
5 5 answers
12.2k
12.2k views
go_editor asked Jul 1, 2016
12,213 views
Consider the following tableThe table is in which normal form?First Normal FormSecond Normal FormThird Normal Form but not BCNFThird Normal Form and BCNF
9 9 votes
1 answers 1 answer
10.3k
10.3k views
ajit asked Sep 5, 2015
10,258 views
Every time the attribute A appears, it is matched with the same value of attribute B but not the same value of attribute C. Which of the following is true?A - (B,C) ...
12 12 votes
3 answers 3 answers
16.3k
16.3k views
focus _GATE asked Jul 17, 2015
16,305 views
What are the final values of $\text{Q}_1$ and $\text{Q}_0$ after $4$ clock cycles, if initial values are $00$ in the sequential circuit shown below:$11$$01$$10$$00$
6 6 votes
2 answers 2 answers
10.7k
10.7k views
Anu asked Jun 28, 2016
10,722 views
An aggregation association is drawn using which symbol?A line which loops back on to the same tableA small open diamond at the end of a line connecting two tablesA small ...