Topic: Database Management Systems / Relational Algebra
Let R(A, B, C) and S(C, D, E) be two relations. Which of the following relational algebra expressions is equivalent to the natural join R ⨝ S?
- A. σ_{R.C=S.C}(R × S)
- B. σ_{R.C=S.C}(R ∪ S)
- C. π_{A,B,C,D,E}(R × S)
- D. π_{A,B,R.C,D,E}(σ_{R.C=S.C}(R × S))
Answer: D. π_{A,B,R.C,D,E}(σ_{R.C=S.C}(R × S))
Explanation: A natural join between two relations R and S essentially performs a Cartesian product ($R \times S$), then filters the rows where the common attributes are equal ($\sigma_{R.C=S.C}$), and finally projects the columns to eliminate duplicate common attributes (keeping only $R.C$ or $S.C$). Option (d) explicitly represents this sequence of operations.