CS FundamentalsHardGATE CS · Amazon/Microsoft placement
R(A, B, C, D, E) with functional dependencies AB → C, BD → CE, A → B is decomposed into R1(C, D), R2(A, B, E). Which statement is correct?
- A. Lossless join and dependency preserving
- B. Neither lossless join nor dependency preserving
- C. Lossless join but not dependency preserving
- D. Dependency preserving but not lossless join
Correct answer: B. Neither lossless join nor dependency preserving
The chase (tableau) test never produces an all-distinguished row, so the join is lossy. AB → C cannot be derived from the projected FDs, so a dependency is lost.
More DBMS and SQL questions
- A fuzzy checkpoint differs from a simple (quiescent) checkpoint because it:
- Table Dept(did PRIMARY KEY) rows: (10), (20), (30). Table Emp(eid PRIMARY KEY, did REFERENCES Dept(did) ON DELETE CASCADE, mentor…
- Classify the schedule W3(A), R1(A), R2(B), R2(A), R3(B), C2, W1(B), R1(B), C1, C3 (Ci = commit of Ti) by the strongest property it…
- R(A, B) has 120 tuples and S(B, C) has 40 tuples, where B is a key of neither relation. What are the minimum and maximum possible numbers…
- R(A, B, C, D, E) has functional dependencies D → A, AB → CD, BE → C, BC → E. What is the closure {BC}⁺?
- A file of 5000 blocks is sorted by external merge sort with M = 21 buffer blocks (sorted runs of M blocks are created in pass 0, then (M −…