1,524 views
1 votes
1 votes

Consider a relation schema r(ABCDEF) and attribute A is element of every candidate key of r. Maximum number of possible candidate keys of r is ________.

1 Answer

Best answer
3 votes
3 votes

Maximum number of candidate keys for a relation can be given by:$\binom{n}{\left \lceil n/2 \right \rceil}$. For example R(A,B,C,D) have AB,BC,CD,AD,BD .Here A is fixed in any candidate key, so for other 5 attributes we  have $\binom{5}{\left \lceil 5/2 \right \rceil} = 10$ keys. So, answer is 10.

Reference: sql - finding largest number of candidate keys that a relation has? - Stack Overflow

edited by

Related questions

2 votes
2 votes
1 answer
1
kaustubh7 asked Sep 20, 2023
435 views
Consider a relation R having seven attributes ABCDEFG. Fields of R contain only atomic values.FDs = {CD → G, A → BC, B → CF, E → A, F → EG, G → D} is set of f...
3 votes
3 votes
2 answers
2
Ram Swaroop asked Jan 30, 2019
1,298 views
Consider the following relation R(A1, A2,...A15) with (A1,A2, ... A6) of relation R are simple candidate key. The number of possible superkey in relation R is_
0 votes
0 votes
1 answer
4