Join Criteria Parameters
| Parameter |
Comment |
| Join clause |
Specifies the join criteria. |
| Type |
Specifies the join strategy: Left,
Inner, Full Outer, Left
Excluding. Default: Left. |
| Aggregate |
If true, Data Perspective Studio groups the right elements inside a list for one matching left element.
Default: false. |
| Output expression |
Optional. Use the output expression to format the result. It operates as a
MAP operator placed at the end of the
JOIN. |
Common Example
The Join clause expression is: left.company_id ==
right.company_id
Table 1. Left Input
| company_id |
country |
| 1 |
Great Britain |
| 2 |
France |
| 3 |
Germany |
Table 2. Right Input
| company_id |
name |
age |
| 1 |
John |
35 |
| 1 |
Lucy |
42 |
| 2 |
Michel |
NULL |
| 4 |
Mary |
24 |
Left Join
The Left join iterates on left input elements and associates them
with right input elements for which the criterion is true.

Left Join Result If Aggregate=true
See Common Example.
If Aggregate is true, the
Left join gives the following result:
| company_id |
country |
name |
age |
| 1 |
Great Britain |
John, Lucy |
35.42 |
| 2 |
France |
Michel |
NULL |
| 3 |
Germany |
NULL |
NULL |
Data Perspective Studio generates the following result in
JSON: {left: {company_id: "1", country: "Great Britain"}, right: [{company_id: "1", name: "John", age: "35"}, {company_id: "1", name: "Lucy", age: "42"}]}
{left: {company_id: "2", country: "France"}, right: [company_id: "2", name: "Michel", age: NULL]}
{left: {company_id: "3", country: "Germany"}, right: [company_id: "3", name: NULL, age: NULL]}
Left Join Result if Aggregate=false
See Common Example.
If Aggregate is false, the
Left join gives the following result:
| company_id |
country |
name |
age |
| 1 |
Great Britain |
John |
35 |
| 1 |
Great Britain |
Lucy |
42 |
| 2 |
France |
Michel |
NULL |
| 3 |
Germany |
NULL |
NULL |
Data Perspective Studio generates the following result in
JSON: {left: {company_id: "1", country: "Great Britain"}, right: {company_id: "1", name: "John", age: "35"}}
{left: {company_id: "1", country: "Great Britain"}, right: {company_id: "1", name: "Lucy", age: "42"}}
{left: {company_id: "2", country: "France"}, right: {company_id: "2", name: "Michel", age: NULL}}
{left: {company_id: "3", country: "Germany"}, right: {company_id: "3", name: NULL, age: NULL}}
Inner Join
The Inner join takes the intersection of the left and right
input.

Inner Join Result
See Common Example.
The Inner join gives the following result:
| company_id |
country |
name |
age |
| 1 |
Great Britain |
John |
35 |
| 1 |
Great Britain |
Lucy |
42 |
| 2 |
France |
Michel |
NULL |
Data Perspective Studio generates the following result in
JSON: {left: {company_id: "1", country: "Great Britain"}, right: {company_id: "1", name: "John", age: "35"}}
{left: {company_id: "1", country: "Great Britain"}, right: {company_id: "1", name: "Lucy", age: "42"}}
{left: {company_id: "2", country: "France"}, right: {company_id: "2", name: "Michel", age: NULL}}
Full Outer Join
The Full Outer join returns all elements.

Full Outer Join Result
See Common Example.
The Full Outer join gives the following result:
| company_id |
country |
name |
age |
| 1 |
Great Britain |
John |
35 |
| 1 |
Great Britain |
Lucy |
42 |
| 2 |
France |
Michel |
NULL |
| 3 |
Germany |
NULL |
NULL |
| 4 |
NULL |
Mary |
24 |
Data Perspective Studio generates the following result in
JSON: {left: {company_id: "1", country: "Great Britain"}, right: {company_id: "1", name: "John", age: "35"}}
{left: {company_id: "1", country: "Great Britain"}, right: {company_id: "1", name: "Lucy", age: "42"}}
{left: {company_id: "2", country: "France"}, right: {company_id: "2", name: "Michel", age: NULL}}
{left: {company_id: "3", country: "Germany"}, right: {company_id: "3", name: NULL, age: NULL}}
{left: {company_id: "4", country: NULL}, right: {company_id: "4", name: "Mary", age: "24"}}
Left Excluding Join
The Left Excluding join retrieves the left input elements that do
not match any right input elements.

Left Excluding Join Result
See Common Example. The Left Excluding
join gives the following result:
| company_id |
country |
name |
age |
| 3 |
Germany |
NULL |
NULL |
Data Perspective Studio generates the following result in
JSON: {left: {company_id: "3", country: "Germany"}, right: {company_id: "3", name: NULL, age: NULL}}
|