CS FundamentalsVery hardGATE CS · DBMS
R(A, B, C, D, E) has functional dependencies E → CD, C → A, D → AC. Which decomposition of R is lossless-join?
- A. (A, D, E), (B, C)
- B. (A, C), (A, D, E), (B, C, E)
- C. (A, B), (A, C), (D, E)
- D. (A, B, E), (B, C, D)
Correct answer: B. (A, C), (A, D, E), (B, C, E)
Run the chase (or, for two parts, check whether the common attributes determine one whole part). Only (A, C), (A, D, E), (B, C, E) produces an all-distinguished row; in each other option some join step has common attributes that are not a key of either side.
More DBMS and SQL questions
- Classify the schedule R2(B), W2(B), W1(A), R1(A), W1(B), C1, C2 (Ci = commit of Ti) by the strongest property it satisfies.
- Which statement about the basic timestamp-ordering protocol is correct?
- A file has 20,000 records of 80 bytes stored unspanned in 512-byte blocks, NOT ordered on attribute X. A dense secondary index on X (a…
- R(A, B) has 250 tuples and S(B, C) has 60 tuples, where B is the primary key of R and also the primary key of S. What are the minimum and…
- 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?
- 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)…