$\sigma_{A=B \text{ and } B=C \text{ and } C=A} \bigg( \Pi_A (R) \times \Pi_B (R) \times \Pi_C (R) \bigg)$
The number of rows returned by the above relational algebraic expression is ________.
@Kiran Karwa yep
ΠA(R) → {1,2}
ΠB(R) → {1,2}
ΠA(C) → {1}
So,
(ΠA(R)×ΠB(R)×ΠC(R)) → {1,2} * {1,2} * {1}
→ {(1,1,1),(1,2,1),(2,1,1),(2,2,1)}
σA=B and B=C and C=A(ΠA(R)×ΠB(R)×ΠC(R)) → {(1,1,1)}
Hence, 1 row will be returned.
64.3k questions
77.9k answers
244k comments
80.0k users