The total number of tuples obtained by evaluating the following expression
is ___________.
View worked solution
Answer: 2
To find the total number of tuples in the expression , we evaluate it in two steps:
Step 1: Perform the Join ()
We match tuples from and where the attribute is equal:
- For :
- has and has
- For :
- has and has
- has and has
No other values of (i.e., ) have matching tuples in both relations.
Step 2: Apply the Selection ()
Now, we filter the joined tuples using the condition :
- For : is True (Selected)
- For : is True (Selected)
- For : is False (Not selected)
Thus, the final relation contains exactly 2 tuples.
Free practice · Your answers on this page are not saved.
