GATE CSE 2024 Session 1 Q35: Tuples in a selection over an equi-join of R and S
- Databases
- 1 mark
- NAT
- No negative marking
Question
Consider the following two relations, R(A,B) and S(A,C):
| A | B |
|---|---|
| 10 | 20 |
| 20 | 30 |
| 30 | 40 |
| 30 | 50 |
| 50 | 95 |
| A | C |
|---|---|
| 10 | 90 |
| 30 | 45 |
| 40 | 80 |
The total number of tuples obtained by evaluating the following expression
is _________
Try it: numerical answer: type the value
Numerical answer. No negative marking.
Show answer and explanation
Answer: 2 (official GATE 2024 final answer key)
Concept used: Equi-join on A, then filter the joined rows by .
First step: Only A = 10 and A = 30 appear in both relations; list the joined rows for them.
Full step-by-step solution
Detailed working, common mistakes and linked mock tests will be available with a free GATEiit account. Log-in is coming soon.
Share this question
Source: official GATE 2024 Session 1 CS question paper and final answer key, organised by IISc Bangalore. Question paper · Answer key
More Databases PYQs
- 2026 Session 1 · Q30Which functional dependency inferences always hold
- 2026 Session 1 · Q31Dependency-preserving decompositions for 1NF, 2NF, 3NF, BCNF
- 2026 Session 1 · Q43Relational algebra equivalent of a tuple calculus join query
- 2026 Session 1 · Q65Number of superkeys with candidate keys {A,B} and {A,C}
- 2026 Session 2 · Q15Match DBMS schema levels with what they describe
- 2026 Session 2 · Q20When two transactions do not conflict on a data item