Relational Algebra & Calculus


Answer & solution
Official answer: A
Relational union eliminates the two shared tuples (15, Shreya, 24) and (99, Rohit, 11), leaving five distinct tuples with Id values 12, 15, 25, 98, 99. For C.Id=10, the condition C.Id<15 is true, so all five join. For C.Id=99, only the two union tuples with Id>40 join. There are 5+2=7 result tuples, A. This is a theta join, so each qualifying pair contributes its combined tuple.
Check: The pair count can also be checked from the union side: Ids 12,15,25 each match only C.Id=10, contributing three; Ids 98,99 each match both C rows, contributing four. The total 3+4=7 agrees with counting from the C side.