659 views
0 votes
0 votes
Let R(A, B, C) be a relation with primary key (A) and S(A, D, E) a relation with primary key (A, D). Each of the relations has n tuples. If the number of tuples in R natural join S is m, then determine the number of tuples in R natural left outer join S.

1 Answer

0 votes
0 votes

A is a primary key in R and A is a foreign key in S referring to A in R. Therefore, the number of tuples in natural join should be the number of tuples in S, i.e, n. Since the number of tuples in R and number of tuples in natural join of R and S are same=> n, therefore the number of tuples in R natural right outer join S should also be n.

In R natural left outer join S we cannot say the exact number of tuples, but we can say max and min no of tuples.

1.min should be n

2.max should be 2n-1 => ex-:

R(A,B,C)= (1,-,-) ,(2,-,-), (3,-,-)

S(A,D,E)= (1,2,-), (1,3,-),(1,4,-)

Please correct me if I am wrong.

edited by

Related questions

0 votes
0 votes
1 answer
1
MiNiPanda asked May 9, 2018
591 views
Let R(A,B,C) be a relation with primary key (A) and S(A,D,E) a relation with primary key (A,D). Each of the relations has n tuples. If the number of tuples in R natural j...
1 votes
1 votes
1 answer
2
Tesla! asked Apr 28, 2018
497 views
Let $a,b,c$ and $d$ be real number such that $a+b=c+d$ and $ab=cd$. Prove that $a^{n}+b^{n}=c^{n}+d^{n}$ for all positive integer $n$.
1 votes
1 votes
1 answer
4
Debasmita Bhoumik asked May 12, 2018
375 views
Consider the Boolean function F(x1, x2, . . . , x10) realised by the following combinational circuit.Determine the number of input combinations for which the output funct...