2,562 views
0 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 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.

Position:
Show:

Related questions

3 3 votes
0 0 answers
376
376 views
ramcharan2410 asked Dec 2, 2024
376 views
In the case of referential integrity in RDBMS, there are solutions for INSERT, DELETE, and UPDATE operation problems on Referenced Table (or) Base Table like ON DELETE CA...
2 2 votes
3 3 answers
11.1k
11.1k views
rahul sharma 5 asked Dec 17, 2017
11,050 views
select the correct statement from the following on referential integritySelect one:a. referential integrity constraints check whether the primary key, values are uniqueb....
1 1 vote
2 2 answers
5.4k
5.4k views
Purple asked Jan 19, 2017
5,362 views
We can convert any weak entity set to a strong entity set by simply adding appropriate attributes. Why, then, do we have weak entity sets at all? $1)$ We want to avoid th...
0 0 votes
3 3 answers
3.4k
3.4k views
uzumzki asked Aug 17, 2015
3,380 views
R(ABC)     S(BDE)F:A->B      B ->C     B->D     D->EAND R HAS 100 TUPLES AND S HAS 200