CS FundamentalsVery hardGATE CS · Product placement
R(A, B, C, D, E, F) has functional dependencies AE → BC, B → F, E → C, BD → E, F → E. Which of the following is the complete set of candidate keys of R?
- A. {ABD, ADE, ADF}
- B. {ABD, ADE, ADF, AEF}
- C. {ABD, ADE}
- D. {ABD, ADE, ADEF}
Correct answer: A. {ABD, ADE, ADF}
Attributes never on a right side (AD) must be in every key; extending them and testing closures gives exactly the minimal superkeys {ABD, ADE, ADF}. 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) = {(a1, b2), (a1, b3), (a2, b1), (a2, b2), (a2, b3), (a3, b1), (a4, b1), (a4, b2), (a4, b3)} and S(B) = {b1, b3}. What is R ÷ S?
- The system crashes after the last record of this log (immediate database modification; <Ti, X> denotes an update with old and new values…
- 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, C, D, E, F) has functional dependencies B → ACDEF. What is the highest normal form R satisfies?
- Which isolation anomaly is still possible at the SQL REPEATABLE READ level (as defined by the SQL standard)?
- A B-tree (not B+ tree) stores a record pointer with every key in every node. With 2048-byte blocks, 16-byte keys, 8-byte tree pointers and…