7,679 views
7 7 votes
What is the maximum number of possible candidate key for relation on n attributes.

3 Answers

7 7 votes

If a table has n attributes, max candidate keys possible = $nC \left ( n/2 \right )$
e.g. for relation R(ABCD) max canndidate keys = 4C2 = 6
CK = {AB, AC, AD, BC, BD, CD}

• edited by
4 4 votes
$^{n}C_{\left \lfloor \frac{n}{2} \right \rfloor}$

This is the exact formula.

Source: Made easy test series

Verified by R a v i n d r a B a b u R a v u l a
Position:
Show:

Related questions

2 2 votes
1 1 answer
151
151 views
GO Classes asked Sep 8
151 views
Consider the relation schema $R(A,B,C,D,E)$ with$F=\{AB \to C,\ CD \to E,\ DE \to B\}$Which attributes must necessarily occur in every candidate key of $R$?$A$ $B$ $C$ $D...
2 2 votes
1 1 answer
145
145 views
GO Classes asked Sep 8
145 views
Consider the relation schema $R(A,B,C,D,E,F)$ with$F=\{BE \to C,\ B \to F,\ D \to F,\ AEF \to B,\ A \to E\}$Which of the following is a candidate key of $R$?$ACD$ $AD$ $F...
1 1 vote
1 1 answer
171
171 views
GO Classes asked Sep 2
171 views
Consider the following relation instance $R(A,B,C)$:$$\begin{array}{|c|c|c|}\hlineA & B & C \\\hline\alpha & \delta & \xi \\\beta & \delta & \psi \\\gamma & \eta & \xi \\...