Jun 12 2017
08:26 PM
- last edited on
Jul 12 2019
10:46 AM
by
TechCommunityAP
Jun 12 2017
08:26 PM
- last edited on
Jul 12 2019
10:46 AM
by
TechCommunityAP
Assume there two tables.
One table contains the following:
The other table contains the following:
A full outer join, after expansion, should create a new table with two columns that look like this:
Instead, this is returned:
Jun 13 2017 01:39 AM
SolutionHi Stevenson,
That's correct behaviour for Full Outer join, it returns records from both tables with null in other column for not-matching records.
See, for example, http://www.dofactory.com/sql/full-outer-join
Jun 13 2017 04:11 AM
Thank you for your reply. After more searching, I realized that I was barking up the wrong tree and there was nothing wrong with Full Outer Join. I was confusing it with a Cartesian Join.
Jun 13 2017 04:25 AM
No problem. Cartesian join is not predefined, if you'd like to have it you may use something like
... CreateCartesian = Table.AddColumn(stepBefore, "New Column", each Table2), ExpandTable = Table.ExpandTableColumn(CreateCartesian, "New Column", {"Column1"}, {"Column2"}) ...
other words adding Table2 to each row of Table1
Jun 13 2017 01:39 AM
SolutionHi Stevenson,
That's correct behaviour for Full Outer join, it returns records from both tables with null in other column for not-matching records.
See, for example, http://www.dofactory.com/sql/full-outer-join