CS FundamentalsVery hardGATE CS (PYQ pattern)
R(A, B, C, D, E) has the functional dependencies D → C, DC → B, A → B, AC → E, C → A, E → C, D → E. How many of the listed dependencies are, taken one at a time, redundant (implied by the remaining six)?
- A. 4
- B. 2
- C. 5
- D. 3
Correct answer: D. 3
Remove each FD in turn and test whether its right side is still in the closure of its left side under the others: ['D→C', 'DC→B', 'D→E'] pass the test.
More DBMS and SQL questions
- R(A, B, C, D, E, F) has the functional dependencies A -> B, DB -> F, FB -> C, A -> C, A -> D, EF -> B. An attribute set X is closed if X+…
- R(A, B, C, D, E, F) has the functional dependencies AF → E, D → B, BF → D, ED → C, C → F. How many attributes belong to EVERY candidate…
- R(A, B, C, D, E) has the functional dependencies BD → A, B → E, AC → B, B → D, A → C. Which statement is correct?
- Table LV(id, v): (1,5), (2,9), (3,9), (4,3), (5,3). Let L be the sum over all rows of LASTVALUE(v) OVER (ORDER BY v) and F the sum of…
- HR(id, mgr): (1,NULL), (2,1), (3,1), (4,2), (5,2), (6,4), (7,6), (8,3). The recursive query WITH RECURSIVE D(id, d) AS (SELECT id, 0 FROM…
- UA(id, g, x): (1,1,10), (2,2,20), (3,3,30), (4,1,40). UB(g, bonus): (1,5), (2,7). After UPDATE UA SET x = x + (SELECT bonus FROM UB WHERE…