Consider the following two relations, R(A,B) and S(A,C): The total number of tuples obtained by evaluating the following expression B < C(R R.A=S.A S) is …
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2024 Set 1 · Q35
Time


Your answerNumerical answer
Solution
Official answer: 2 (±0)
Relational AlgebraFirst, evaluate the natural join/equi-join on attribute :
For :
:
:
Joined tuple:
For : No matching tuple in .
For :
: and
:
Joined tuples: and
For : No matching tuple in .
Now, apply the selection condition to the joined tuples:
For : is True.
For : is True.
For : is False.
Therefore, exactly 2 tuples satisfy the condition.
Try the question first, then check your work.
Examiner trap
Join the two relations on the common attribute , then count how many resulting tuples have .
This Relational Algebra previous year question is Q35 of the GATE CSE 2024 Set 1 paper. Find more GATE CSE PYQs on Relational Algebra in Databases, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 4 related Relational Algebra PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Relational Algebra has 4 GATE CSE PYQs across 4 papers from 2012 to 2024. This is the only 1-mark NAT question among them, and it is the only one in GATE CSE 2024 Set 1.
How GATE tests Relational AlgebraIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.