CS FundamentalsHardGATE CS · DBMS
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?
- A. DE
- B. BCE
- C. CD
- D. ABCE
Correct answer: C. CD
{CD}⁺ = {ABCDF}, which misses E, so it is not a superkey. Each other option's closure is all of R (each contains one of the candidate keys CE, DE, EF).
More DBMS and SQL questions
- Table Score(name, pts) rows: ('a', 90), ('b', 85), ('c', 90), ('d', 70), ('e', 85), ('f', 60). In this query's output, what are (r, dr)…
- R(A, B, C, D, E, F) has the set of functional dependencies Σ = {A → D, E → C, AE → CD, F → B, B → F}. Which of the following FDs is NOT in…
- R(A, B, C, D) has functional dependencies D → AB, A → BC. What is the highest normal form R satisfies?
- A B+ tree index uses 512-byte blocks, 8-byte search keys, 4-byte block pointers and 6-byte record (data) pointers. Each leaf also keeps…
- R(A, B) = {(1, 3), (3, 2), (3, 4), (4, 2)} and S(B, C) = {(2, 5), (2, 7), (3, 6), (3, 7), (4, 5)}. How many tuples does σ{R.B ≠ S.B}(R ×…
- A query optimizer rewrites σ{city='Pune'}(Customer ⋈ Orders) as σ{city='Pune'}(Customer) ⋈ Orders, where city is an attribute of Customer…