GATE / CS ARCHIVE

GATE CSE 1999 / QUESTION 1.19

Conjunction in tuple calculus

Database Management Systems · Relational Algebra & Calculus · Full GATE CSE 1999 paper

GATE 1999, Q1.19 1 mark · MCQ
Report issue

Relational Algebra & Calculus

Question 1.19, GATE 1999: Translate {t | t∈r and t[A]=10 and t[B]=20}. Options combine the two selections by OR/union, intersection, or difference.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

The tuple must satisfy both tests simultaneously. Selection on A=10 retains the first qualifying subset, and selection on B=20 retains the second. Their intersection contains exactly tuples passing both, so σ(A=10)(r)∩σ(B=20)(r) is equivalent, C. Union or a disjunctive predicate would admit a tuple satisfying only one test. Difference would keep the first test while rejecting the second, which reverses the required conjunction.

Original paper, page 2