in Databases
753 views
1 vote
1 vote
Minimum number of tuples in R Natural join S where R and S contains m  and n tuples respectively .
in Databases
753 views

4 Comments

@Shubhgupta it can also be 0 when there are no common values in the common attribute between the relations.

Can't it be the case ?

0
0
answer will be $0$
0
0

@Shobhit Joshi, yes I missed that case. Thanks!

0
0

1 Answer

3 votes
3 votes
Best answer

The minimum number of tuples in $R$ Natural join $S$ is $zero,$ when both relations have a common attribute, but does not satisfy the condition.

Let us say

$R$

a b
1 2
2 3

$S$

b c
4 5
6 7


$R\Join_{<b=b>} S$

a b c
     
     

Number of tuples $=0$

And if both relation does not have any common attribute then natural join works as a cartessian product(or cross product).

$R$

a b
1 2
2 3

$S$

c d
4 5
6 7

$R$ Natural Join $S$

a b c d
1 2 4 5
1 2 6 7
2 3 4 5
2 3 6 7

Number of tuples $=4$

selected by

4 Comments

@

thanks

0
0

@Lakshman Patel RJIT

if you add the answer, then questioner automatically notified....

no need to add separate comment !

0
0
Ok Brother
0
0