2,080 views
17 votes
17 votes
Suppose we have a relation $R(A, B, C, D, E)$ with the functional dependencies:
$A \rightarrow D, B \rightarrow C, D \rightarrow E, CE \rightarrow B$.

If we project $R$ and therefore its functional dependencies onto the schema $ABC$, what will the key(s) for $ABC$ be?

4 Answers

Best answer
26 votes
26 votes
$A+   = ADE$      $B+ =BC     C+ =C $

$AB+ = ABCDE$         First Key : $AB+ =ABC$

$AC+ = ABCDE$         Second Key :  $AC+ =ACB$

$BC+ = BC$

So, on schema  $ABC$ we Got $2$ keys. $ABC$
edited by
8 votes
8 votes

A is not in RHS of any FD.
So A will be there for must.

Only focus on A, B, C.

Now (A)+ = ADE which does not contain B, C.

So check  (AC)+ and (AB)+.
Closure of both AB and AC contains ABC.  

1 votes
1 votes
They are asking FD's for sub relation R(ABC)

A+   = ADE      B+ =BC     C+ =C  

AB+ = ABC         First Key

AC+ = ABC      Second Key

BC+ = BC

Hence we got 2 Keys
–3 votes
–3 votes
Keys for (ABC) are

(AB)+ ={ABCDE}

(ACE)+ ={ABCDE}

These two keys for getting schema ABC .No other key gives schema (ABC)

So, keys are (AB) , (ACE)

Related questions

2 votes
2 votes
2 answers
1
go_editor asked Jun 3, 2016
748 views
Consider relations $R(A, B)$ and $S(B, C)$. Find a propositional formula $\phi$ such that the following two relational algebra expressions produce the same answer.$\pi_{A...
4 votes
4 votes
0 answers
2