UGC-NET Oct 2020 · Relational Algebra

MCQ · 2 marks · Problem DBMS-RELM-0015

Match $\text{List I}$ with $\text{List II}$ Let $R_1=\{(1,1), (2,2), (3,3)\}$ and $R_2=\{(1,1), (1,2), (1,3), (1,4)\}$ $\begin{array}{llll} & \text{List I} & & \text{List II} \\ (A) & R_1 \cup R_2 & (I) & \{(1,1), (1,2), (1,3), (1,4), (2,2), (3,3) \} \\ (B) & R_1 – R_2 & (II) & \{(1,1)\} \\ (C) & R_1 \cap R_2 & (III) & \{(1,2), (1,3), (1,4) \} \\ (D) & R_2 – R_1 & (IV) & \{(2,2), (3,3)\} \end{array}$ Choose the correct answer from the options given below:
  1. A
    $A-I, B-II, C-IV, D-III$
  2. B
    $A-I, B-IV, C-III, D-II$
  3. C
    $A-I, B-III, C-II, D-IV$
  4. D
    $A-I, B-IV, C-II, D-III$

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

Show the worked solution\[R_1\cup R_2=\{(1,1),(1,2),(1,3),(1,4),(2,2),(3,3)\}\ \to\ \text{I}.\]\[R_1-R_2=\{(2,2),(3,3)\}\ \to\ \text{IV}.\]\[R_1\cap R_2=\{(1,1)\}\ \to\ \text{II}.\]\[R_2-R_1=\{(1,2),(1,3),(1,4)\}\ \to\ \text{III}.\]So A-I, B-IV, C-II, D-III.Answer: D

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