I have a relation R with 10 blocks. S with 1000 I have also 50 unique records for attribute A in relation R, and 5000 unique records for attribute A in relation S. I have 100 records on each block. Note that we assume a uniform distribution of the different values in each relation. S has a clustring index on the join attribute A.
The question is : How many blocks of S store any of the records that participate in the join with R. I need to answer with the best and the worst case.
I thought that if R has 50 unique records for A and it's clustering index, it will take minimum 1 block for each unique and maximum 2. and then the answer is 50 or 100.
But, why can't I put 5 unique records in each block so the maximum number of block is 10?