CS FundamentalsVery hardGATE CS · DBMS
R(A, B, C, D, E, F) has functional dependencies BD → E, D → AF, E → AB, BC → D. Which of the following is the complete set of candidate keys of R?
- A. {BC, CE}
- B. {BC, BCE}
- C. {BC, BE, CE}
- D. {BC}
Correct answer: A. {BC, CE}
Attributes never on a right side (C) must be in every key; extending them and testing closures gives exactly the minimal superkeys {BC, CE}. Each closure covers all of R and no proper subset does, so these are all the candidate keys.
More DBMS and SQL questions
- T1: W1(B), R1(B), R1(A) and T2: W2(A), R2(B), R2(A). Of all 20 interleavings that keep each transaction's own order, how many are conflict…
- Σ = {B → C, C → B, AE → D, F → B, DF → C} on R(A, B, C, D, E, F). Exactly one FD in Σ is redundant (it can be derived from the others)…
- Table Sale(id, rep, region, amt) rows: (1, 'Ira', 'N', 100), (2, 'Jai', 'S', 250), (3, 'Ira', 'S', NULL), (4, 'Kim', 'N', 300), (5, 'Jai'…
- R(A, B) = {(1, 1), (1, 3), (3, 2), (4, 1), (4, 2), (4, 4)} and S(B, C) = {(1, 5), (1, 7), (3, 7), (4, 5)}. What is πA(R) − πA(R ⋈ S)?
- R(A, B, C, D, E) has functional dependencies AD → C, B → AE, D → B, AB → D. What is the highest normal form R satisfies?
- R(A, B) = {(1, 2), (1, 4), (2, 4), (4, 1), (4, 2)} and S(B, C) = {(1, 6), (3, 5), (3, 7), (4, 6), (4, 7)}. How many tuples are in πA(R ⋈…