Asked By : orange
Answered By : Tegiri Nenashi
R = [A B] 1 2 3 4
and
S = [B C] 4 5 6 7
both outer join variants agree that the result projected to common column B should be {2,4,6}. This is what is called inner union — alternative way of generalizing standard relational algebra union operator. Now the problem is finding values of attributes A and C. Next, we match the values of the “middle column” with attributes A and C trying to leverage information in the relations R and S. In case of value B=2 we don’t have matching value of C. Likewise, for B=6 we don’t have matching value of A. Therefore, D&D $blacktriangleleft OR blacktriangleright$ operator fills the blanks in
[A B C] 1 2 3 4 5 6 7
with all the values from corresponding domain, while the NULL version just blurts NULLs.
Best Answer from StackOverflow
Question Source : http://cs.stackexchange.com/questions/6997