In the left outer join, the operation allows keeping all tuple in the left relation.
If there is no matching tuple is found in the right relation, then the attributes of the right relation in the join results are filled with null values.
Example:
A B
Num
Square
Cube
2
4
8
3
9
27
4
16
–
Right Outer Join(A B)
In the right outer join, the operation allows keeping all tuple in the right relation.
If there is no matching tuple is found in the left relation, then the attributes of the left relation in the join results are filled with null values.
Example:
AB
Num
Square
Cube
2
4
4
3
9
9
5
–
125
Full Outer Join: ( A B)
In a full outer join, all tuples from both relations are included in the result, irrespective of the matching condition.
A B
Num
Square
Cube
2
4
8
3
9
27
4
16
–
5
–
125
Intersection (∩)
An intersection is defined by the symbol ∩
A ∩ B defines a relation consisting of a set of all tuple that is in both A and B. However, A and B must be union-compatible.
Example:
Consider 2 tables –
Table A :
Attribute1
Attribute2
1
1
1
2
Table B :
Attribute1
Attribute2
1
1
1
3
A ∩ B
Attribute1
Attribute2
1
1
Prime Course Trailer
Related Banners
Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription
Login/Signup to comment