retagged by
20,034 views

3 Answers

Best answer
5 votes
5 votes

{CD}+={CDF}

{EC}+={ABCDEF}

{AE}+={ABE}

{AC}+={ABCF}

Hence,Option(B)EC is the correct choice.

selected by
1 votes
1 votes

ans is B

Find the closure set of all the options give. If any closure covers all the attributes of the relation R then that is the key.
Algorithm to find Closure Set
Step1: Equate an attribute or attributes to X for which closure needs to be identified.
Step2: Take each FD (functional dependency) one by one and check whether the left side of FD is available in X, if yes then add the right side attributes to X if it is not available.
Step3: Repeat step 2 as many times as possible to cover all FD's.
Step4: After no more attributes can be added to X declare it as the closure set.
FDs: C->F, E->A, EC->D, A->B Find closure set for CD.
X = CD = CDF {C->F}
No more attributes can be added to X. 
Hence closure set of CD = CDF 
Find closure set for EC.
X = EC = ECF {C->F} = ECFA {E->A} = ECFAD {EC->D} = ECFADB {A->B}
Closure set of EC covers all the attributes of the relation R.

0 votes
0 votes

ANSWER: OPTION B
You can directly find the candidate key using two rules or you can say necessary attributes
An Attribute A is said to be a necessary attribute if
(a)  A occurs only in L.H.S. (left hand side ) of the fd's(functional dependencies) in F  and/or
(b)  A is an Attribute in relation, But A doses not occur either in L.H.S. or R.H.S. of any fd in F.
In other words, Necessary attributes never occur in the RHS of any fd in F.
Here we can directly see, both attribute E and C not occur in RHS of any fd. So, both of are necessary part of a candidate key.
for reference : http://csc.lsu.edu/~jianhua/fd_slide2_09.pdf  (Page 3)

nF
Answer:

Related questions

0 votes
0 votes
2 answers
1
makhdoom ghaya asked Jul 1, 2016
3,395 views
Match the following $:$$\begin{array} {cIcI} & \textbf{List – I} && \textbf{List – II} \\ \text{a.} & \text{DDL} & \text{i.} & \text{LOCK TABLE} \\ \text{b.} & \tex...
3 votes
3 votes
3 answers
2
makhdoom ghaya asked Jul 1, 2016
4,187 views
A clustering index is created when _______. Primary key is declared and ordered No key orderedForeign key orderedThere is no key and no order
0 votes
0 votes
2 answers
3
makhdoom ghaya asked Jul 1, 2016
10,708 views
Manager’s salary details are hidden from the employee. This is called asConceptual level data hidingPhysical level data hidingExternal level data hiding Local level...