This scenario shows how the left outer join merges the two input tables and returns all values from the left table and all corresponding matches based on the join predicates. The Auto Filling option of two join tables is set to “If Null/Initial then First to Last”.
Input Tables
Product - Material Table
| Product Code |
Material Code |
Request Order |
| P0001 |
M1011 |
5 |
| P0001 |
M1010 |
2 |
| P0002 |
M1009 |
1 |
| P0002 |
M1011 |
3 |
| P0005 |
M1012 |
10 |
| P0005 |
M1011 |
30 |
|
Product Table
| Product Code |
Product |
Price |
Currency |
| P0001 |
Shoe |
75 |
EUR |
| P0002 |
Watch |
300 |
EUR |
| P0003 |
Shirt |
80 |
EUR |
| P0004 |
Shorts |
20 |
EUR |
|
Returns all values from the left table and all corresponding matches based on the join predicates for product codes P0001 and P0002.
Expected Result
| Product Code |
Material Code |
Request Order |
Product |
Price |
Currency |
| P0001 |
M1011 |
5 |
Shoe |
75 |
EUR |
| P0001 |
M1010 |
2 |
Shoe |
75 |
EUR |
| P0002 |
M1009 |
1 |
Watch |
300 |
EUR |
| P0002 |
M1011 |
3 |
Watch |
300 |
EUR |
| P0005 |
M1012 |
10 |
|
0 |
|
| P0005 |
M1012 |
30 |
|
0 |
|