1,283 views
0 votes
0 votes
Consider the join of a relation R with a relation S. If R has 100 tuples and S has 9 tuples then the maximum and minimum sizes of the join respectively under referential integrity constraint:-

(A) 9 and 0

(B) 9 and 9

(C) 9+100 and 0

(D) 9*100 and 9

1 Answer

0 votes
0 votes

1. To get the maximum 

assume Referencing Table(table having foreign key, referencing an attribute in relation S) as  R (with 100 tuples)

assume Referenced Table as S(with 9 tuples)

then maximum will be 100 for join on referential integrity constrainst

this will happen when the there is no null values in R for referencing attribute(then every the tuple will be joined with the corresponding matching tuple in the relation S).

hence maximum is 100

2. we get the minimum number of  tuples on join  when for all the tuples referencing attribute is NULL in 

referencing relation. 

then there will be no tuples on  join 

hence minimum will be 0

correct me if am wrong.

Related questions

0 votes
0 votes
3 answers
3
uzumzki asked Aug 17, 2015
1,960 views
R(ABC)     S(BDE)F:A->B      B ->C     B->D     D->EAND R HAS 100 TUPLES AND S HAS 200