Consider two relations and such that and . What is the maximum possible number of tuples in the relation resulting from the relational algebra expression ?
D
Step-by-Step Solution
Key idea: This is a boundary maximization problem for the division operation, which requires finding how many complete sets of the divisor can be formed from the dividend.
Step 1: The division finds all values of the non-common attributes (here, ) that are associated with every tuple in .
Step 2: For a single value of to be in the result, there must be at least one tuple in for every tuple in . Since , each qualifying requires at least 5 tuples in .
Step 3: We want to maximize the number of such values. To do this, we must use the minimum number of tuples in per , which is exactly 5.
Step 4: Given , the maximum number of values is .
Step 5: This maximum is achievable if the 100 tuples in are perfectly partitioned into 20 groups of 5, where each group contains exactly the 5 tuples of .
Answer: 20