1 votes 1 votes R (A1, A2, ….An) and every (n-2) attributes of R forms a candidate key. How many super keys are there in R? a) $_{n-2}^{n}\textrm{C}$ b) $_{n-2}^{n}\textrm{C}$ * 4 c) $_{n-2}^{n}\textrm{C}$ * n d) $_{n-2}^{n}\textrm{C}$ + n +1 Databases superkeys databases candidate-key + – hacker16 asked Jan 17, 2018 hacker16 2.8k views answer comment Share Follow See all 18 Comments See all 18 18 Comments reply Show 15 previous comments sumit goyal 1 commented Jan 18, 2018 reply Follow Share @ joshi_nitish why set theory concept is not applicable here , plz tell 0 votes 0 votes joshi_nitish commented Jan 18, 2018 reply Follow Share @sumit, you can use it if you want to. total subset are $2^n$, now all those subsets which are of size >=n-2 will be super keys 1 votes 1 votes sumit goyal 1 commented Jan 18, 2018 reply Follow Share @ joshi_nitish iam asking like : suppose a relation R1(A,B,C) , CK = { A,B,C} superkeys are = 4+4+4 - ( 2+2+2) +1 if here i try to apply then there will be n terms i stuck in it ? how you would apply plz explain 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes nCn-2+n+1 super keys. Anup dogrial answered Jan 17, 2020 Anup dogrial comment Share Follow See 1 comment See all 1 1 comment reply Madhulika kumari commented Oct 10, 2020 reply Follow Share Option d) works properly for n=4 then number of sk will be 11 But for n=3 no of superkeys should be 4 and according to option d) it shows 7 superkeys Someone please correct me if I m wrong?? 0 votes 0 votes Please log in or register to add a comment.