GATE CS 1998 · ER-Model

MCQ · 1 mark · Problem DBMS-RELM-0095

Which of the following query transformations (i.e., replacing the l.h.s. expression by the r.h.s expression) is incorrect? \(R_1\) and \(R_2\) are relations, \(C_1\) and \(C_2\) are selection conditions and \(A_1\) and \(A_1\) are attributes of \(R_1\).
  1. A
    \(\sigma_{C_1} \left(\sigma_{C_2}\left(R_1\right)\right) \to \sigma_{C_2} \left(\sigma_{C_1}\left(R_1\right)\right)\)
  2. B
    \(\sigma_{C_1} \left(\pi_{A_1}\left(R_1\right)\right) \to \pi_{A_1} \left(\sigma_{C_1}\left(R_1\right)\right)\)
  3. C
    \(\sigma_{C_1} \left(R_1 \cup R_2\right) \to \sigma_{C_1}\left(R_1\right) \cup \sigma_{C_1} \left(R_2\right)\)
  4. D
    \(\pi_{A_1} \left(\sigma_{C_1}\left(R_1\right)\right) \to \sigma_{C_1} \left(\pi_{A_1}\left(R_1\right)\right)\)

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionOfficial GATE Answer Key: Option D.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/1692/gate1998-2-19

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com