in Databases retagged by
2,119 views
1 vote
1 vote

Let R (A, B, C, D) be a relational schema with the following functional dependencies : 
A → B, B → C, C → D and D → B. The decomposition of R into (A, B), (B, C), (B, D)

  1. gives a lossless join, and is dependency preserving
  2. gives a lossless join, but is not dependency preserving
  3. does not give a lossless join, but is dependency preserving
  4. does not give a lossless join and is not dependency preserving
in Databases retagged by
by
2.1k views

4 Comments

@ARJUN SIR @BIKRAM SIR
0
0
1) is correct,,,???
0
0
PLS EXPLAIN THE PART OF DEPENDENCY PRESERVING ?
0
0
explained, see my comment below after ur answer .
0
0

2 Answers

1 vote
1 vote
Best answer
In this can we apply transitivity rule

A->B B->C THEN A->C

B->C C->D THEN B->D

C->D D->B THEN C->B

NOW FROM DECOMPOSITION IT IS LOSSLESS AND ALL DEPENDENCIES ARE PRESERVED

BUT FOR C->D WE CAN DERIVE BY JOINING C->B AND B->D
selected by

1 comment

option A  gives a lossless join, and is dependency preserving is correct .

(A,B) (B,C) -> common attribute is B and due to B->C, B is a key for (B,C) and hence ABC can be losslessly decomposed into (A,B) and (B,C).  Thus the given decomposition is lossless.

 

A->B is present in (A, B),

B->C  and C->B is present in (B, C),

B->D is present in (B, D) and C->D is indirectly we get  via C->B [ C->B and B->D so  C->D]   in (B, C) and D->B in (B, D).

so original relation have  A->B , B->C , C->D , D>B  hence dependency is preseved.
1
1
0 votes
0 votes

here C---->B and B --->D

SO C--->D also  implied

so DP perserving

3 Comments

0
0
B->A   or    A->B .....????

in first example na???
0
0
got it now u r right
0
0
Answer:

Related questions