CS FundamentalsHardGATE CS (PYQ pattern)

Relations R and S have 40 and 60 tuples (union-compatible). What are the minimum and maximum cardinalities of R ∪ S, R ∩ S and R − S (in that order of listing: min–max for each)?

  1. A. 40–100; 0–40; 0–40
  2. B. 60–100; 0–40; 0–40
  3. C. 60–100; 0–60; 0–40
  4. D. 60–100; 0–40; 0–60

Correct answer: B. 60–100; 0–40; 0–40

R ∪ S ranges from 60 (R ⊆ S) to 100 (disjoint). R ∩ S ranges from 0 to 40 (bounded by the smaller relation). R − S ranges from 0 (R ⊆ S) to 40 (disjoint).

More DBMS and SQL questions

Exams that ask this topic