CS FundamentalsVery hardGATE CS · DBMS
R(A, B, C, D, E, F) has functional dependencies BF → DE, C → E, F → E, DF → B. Which of the following is the complete set of candidate keys of R?
- A. {ABCF, ACDF}
- B. {ABCF, ACDF, BCDE}
- C. {ABCF, ACDEF}
- D. {ABCF}
Correct answer: A. {ABCF, ACDF}
Attributes never on a right side (ACF) must be in every key; extending them and testing closures gives exactly the minimal superkeys {ABCF, ACDF}. Each closure covers all of R and no proper subset does, so these are all the candidate keys.
More DBMS and SQL questions
- R(A, B, C, D, E) has functional dependencies E → CD, C → A, D → AC. Which decomposition of R is lossless-join?
- Classify the schedule R2(B), W2(B), W1(A), R1(A), W1(B), C1, C2 (Ci = commit of Ti) by the strongest property it satisfies.
- Which statement about the basic timestamp-ordering protocol is correct?
- A file has 20,000 records of 80 bytes stored unspanned in 512-byte blocks, NOT ordered on attribute X. A dense secondary index on X (a…
- R(A, B) has 250 tuples and S(B, C) has 60 tuples, where B is the primary key of R and also the primary key of S. What are the minimum and…
- R(A, B, C, D, E, F) has functional dependencies C → F, D → AC, A → B, F → D. Which of these attribute sets is NOT a superkey of R?