CS FundamentalsVery hardGATE CS (PYQ pattern)
R(A, B, C, D, E, F) has the functional dependencies F → E, B → F, E → C, AB → F, D → E. R is decomposed into (B, D), (A, C, D, E), (A, B, D, F). Which statement is correct?
- A. The decomposition is both lossless-join and dependency-preserving
- B. The decomposition is dependency-preserving but not lossless-join
- C. The decomposition is neither lossless-join nor dependency-preserving
- D. The decomposition is lossless-join but not dependency-preserving
Correct answer: D. The decomposition is lossless-join but not dependency-preserving
The chase test on the three projections yields a row of all distinguished symbols (lossless), but projecting the FDs onto the three schemas loses at least one dependency that cannot be re-derived from the projected ones.
More DBMS and SQL questions
- R(A, B, C, D, E, F) has the functional dependencies DB → A, AC → D, E → D, DE → A, AB → E. What is the highest normal form of R among 1NF…
- R(A, B, C, D, E, F) has the functional dependencies A → C, D → E, AC → B, C → F, FD → A, A → D. The 3NF synthesis algorithm computes a…
- R(A, B, C, D, E) has the functional dependencies A → B, BC → D and D → E. How many non-trivial functional dependencies of the form X → Y…
- A relation R(A, B, C) holds the tuples (1,x,10), (1,y,20), (2,x,20), (2,z,30), (3,y,10). It is decomposed into R1 = π(A,B) R and R2 =…
- Tables D(d): 1, 2, 3, 4. E(e, d, sal): (10,1,60), (11,1,40), (12,2,30), (13,3,70), (14,3,80), (15,NULL,90). How many rows does SELECT FROM…
- T(x) holds 1, 2, 3, 4, 5, 6, NULL and U(y) holds 2, 4, NULL. Let a, b, c be the row counts of (a) SELECT FROM T WHERE x NOT IN (SELECT y…