434 views

1 Answer

0 votes
0 votes
required output = output of Cartesian product equal to FULL OUTER JOIN

 

option A and D :-  is pretty clear that it doesn't produce our require output. ( due to A.x is not matching with B.x ===> Cartesian product produce m*n and full outer join produce m+n is always not equal)

 

option B,C and E all are produce our required output.

 

but option B is restricting that your two tables should contain 1 rows only

option C is restricting that your one of table should contain 1 rows only

 

option E is doesn't restricting on number of rows of table but restricting that they must have only one different value on column x and A.x is equal to B.x

take A has 4 rows and B has 3 rows and column x is z ===> Cartesian product = 12 , full outer join = 3+3+3+3 = 12 ( A table first row z is mapped with 3 rows of B, A table second row z is mapped with 3 rows of B etc..

option B is a subset of option E,

 

By comparing option C and E ====> you can conclude that Option E is Better Choice.

Related questions

6 votes
6 votes
2 answers
1
hacker16 asked Jan 9, 2018
3,850 views
Why is the minimum number of tuples in full outer join equal to max (m,n) ?
0 votes
0 votes
1 answer
2
sourabh asked Jan 5, 2016
572 views
5 votes
5 votes
4 answers
3
learncp asked Sep 5, 2015
3,469 views
Why is the maximum number of tuples in full outer join equal to m*n, where m is the number of attributes in one relation and n is the attribute count in other ?Can someon...
1 votes
1 votes
1 answer
4
atulcse asked Oct 31, 2021
449 views
An outer join can be done between:a. only two tables b. only three tables c. any number of tables