GATE CS 2014 · Set-3 · SQL Queries

MCQ · 1 mark · Problem DBMS-SQL-0095

What is the optimized version of the relation algebra expression \(\pi _{A1}(\pi _{A2}(\sigma _{F1}(\sigma_{F2}(r))))\) , where A1, A2 are sets of attributes in r with \(A_{1}\subset A_{2}\) and F1, F2 are Boolean expressions based on the attributes in r?
  1. A
    \(\pi _{A1}(\sigma_{(F1 \wedge F2)}(r))\)
  2. B
    \(\pi _{A1}(\sigma_{(F1\vee F2)}(r))\)
  3. C
    \(\pi _{A2}(\sigma_{(F1\wedge F2)}(r))\)
  4. D
    \(\pi _{A2}(\sigma_{(F1 \vee F2)}(r))\)

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

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/2055/gate2014-3-21

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