All mock tests are FREE till 31 December — register to save your progress
Unit 4 · Database Management Systems Paper 2 CS · December 2022 (Shift 2)

R1(Name, Class) = {(a1, 9), (b1, 5), (c1, 6), (d1, 11)} and R2(Name, Class) = {(b1, 5), (f1, 8)}. Which operation produces the output {(b1, 5)}?

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: A. R1 R2

Explanation

Only (b1, 5) is in both relations, so the output is R1 ∩ R2.

Note: Option C, R1 − (R1 − R2), also equals R1 ∩ R2 and produces the same output.

More Database Management Systems questions