8,508 views
1 votes
1 votes

I am confused about this problem:
Relation A -> m tuples
Relation B -> n tuples

What is the maximum and minimum size of natural join?
According to this,  maximum can be -> min(m,n) and minimum can be 0.
I want to know if it is asked that what is maximum and minimum size on join operation (not natural join) will the answer get changed?

1 Answer

Best answer
3 votes
3 votes
As the natural join take the common attribute and combines according to them lets . take a relation R(a,b,c) an a relation S(a,p,q) such that no value of a of r is repeated in the attribute A of relation s. so natural join will take the cross product and will search where R.a=S.a so nothing will be selected and zero tupples will be returned, while if we does not have common attributes then it take the cross product an as it now does not which to compare as there is no common attribute it, stops there only providing you the cartesian product.
so minimum - zero

max- R*S.

and the min max will change according to join or the constraint
selected by

Related questions

6 votes
6 votes
5 answers
1
5 votes
5 votes
1 answer
2
Dulqar asked Jan 6, 2017
9,592 views
Given R with n tuples S with m tuples n<m then How many minimum and maximum tuples in follwing relations . Please Justify with Reason / ExamplesR-SS-RR Left Join SR Nat...
3 votes
3 votes
2 answers
3
iarnav asked Dec 6, 2017
1,303 views
Say we have two relations R (a,b,c) and S (b,d,e).Now, R has 200 tuples and S has 300 tuples. What will be Minimum number of tuples when we do R ⋈ S ( ⋈ = Natural Joi...
1 votes
1 votes
3 answers
4
Purple asked Jan 24, 2016
1,717 views
When , then the cost of computing is(A) the same as R S (B) greater the R S(C) less than R S (D) cannot say anything