CS FundamentalsVery hardGATE CS · Amazon/Microsoft placement
R(A, B, C, D, E, F) has functional dependencies AD → BF, BD → F, F → A. How many superkeys does R have?
- A. 4
- B. 7
- C. 12
- D. 6
Correct answer: B. 7
Candidate keys are {ACDE, BCDE, CDEF}. Count supersets of each key and apply inclusion–exclusion (a set may contain two keys): the total is 7, not the naive sum 12.
More DBMS and SQL questions
- R(A, B, C, D, E) with functional dependencies A → E, D → C, C → DE is decomposed into R1(C, D, E), R2(A, B, C). Which statement is correct?
- Which statement about linear hashing is correct?
- R(A, B, C, D, E, F) has functional dependencies AC → BE, D → E, C → A, AB → F. What is the closure {BC}⁺?
- Σ = {B → A, D → B, AD → C, A → D}. Consider the FD AD → C while computing a canonical cover. Which statement about extraneous attributes…
- Table Acct(no, branch, bal) rows: (101, 'Agra', 500), (102, 'Agra', 1500), (103, 'Bhopal', 700), (104, 'Bhopal', 700), (105, 'Cuttack'…
- R(A, B, C, D, E, F) has FDs BF → A, BD → EF, E → CD, CF → B. Each option is a relation schema obtained by projecting R, with the…