2,602 views
3 3 votes

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 Join)?

2 Answers

Best answer
4 4 votes

When we take natural join, the value of common attribute (B in this case) should match.

Max= 200 when all value of b in R (a,b,c) matches with value of b in S (b,d,e).

Min= 0 when none of values matches

selected by
7 7 votes

  the value of common attribute (B in this case) should match. but in relation their is no specification of key . so it may be the case that all b in R and S are different . and all values are the same and values may be indistinct bcz b is not key . so maximum will M*N   .

Max= 60000  when  all value of b in R (a,b,c) matches with all value of b in S (b,d,e). 

 Min= 0 when none of values matches

edited by
Position:
Show:

Related questions

0 0 votes
1 1 answer
2.7k
2.7k views
srestha asked Dec 16, 2017
2,694 views
Consider the relation schema:Student(roll no, name course no)Enroll(roll no, course no,course name)The number of tuples in the student and enroll table is 30 and 40 respe...
2 2 votes
1 1 answer
2.1k
2.1k views
4 4 votes
4 answers 4 answers
6.5k
6.5k views
kauray asked May 9, 2017
6,533 views
Suppose you are given relations r(A, B) and s(A, C). Suppose that r has 10000 tuples, and s has 5000 tuples. Suppose attribute r.A has 1001 distinct values, and s.A also ...
8 8 votes
3 answers 3 answers
14.6k
14.6k views
GateAspirant999 asked Oct 31, 2016
14,580 views
Consider the following relations: $R_1(A,B,C)$ and $R_2(A,D,E)$. $R_1$ has 1000 records and $R_2$ has 2000 records. The attribute $A$ in $R_2$ is referencing attribute $A...