in Databases edited by
5,306 views
1 vote
1 vote

A relation R={A,B,C,D,E,F,G} is given with following set of functional dependencies: F={AD→E, BE→F, B→C, AF→G}. Which of the following is a candidate key?

  1. A
  2. AB
  3. ABC
  4. ABD
in Databases edited by
by
5.3k views

3 Answers

3 votes
3 votes
Best answer

Given Relation is R = ABCDEFG

Take options

  1. A = A
  2. AB = ABC
  3. ABC = ABC
  4. ABD = ABDEFCG (ABCDEFG)

Hence answer would be 4) ABD will be the candidate keys. 

selected by
by
1 vote
1 vote
ABD={A,B,C,D,E,F,G} Simply take  closure of ABD .
0 votes
0 votes
Find the closure of each options given

answer is ABD

ABD+  = initially add {A,B,D}

since AD -> E we can add E

then since BE -> F we can add F also

so ABD+ = {A,B,C,D,E,F}

since the closure contain all the attributes in the relation. it is a candidate key

for other options the attribute closure will not contain all the attributes
Answer:

Related questions