<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Is there a &amp;quot;true&amp;quot; outer-join in JMP? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Is-there-a-quot-true-quot-outer-join-in-JMP/m-p/591771#M79586</link>
    <description>&lt;P&gt;I'm not aware of a direct way, but an indirect way is to choose the "Match Flag" option when creating the join, then you can manually/programmatically delete any rows that have the label "Both" in the "Match Flag" column. I've put a script below that does this as an example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_0-1674250744415.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49303i20B08510ABF6D8F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_0-1674250744415.png" alt="Jed_Campbell_0-1674250744415.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_1-1674250904700.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49306i99452386FF875CD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_1-1674250904700.png" alt="Jed_Campbell_1-1674250904700.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1 = open ("$SAMPLE_DATA/Hot Dogs.jmp");
dt2 = open ("$SAMPLE_DATA/Hot Dogs2.jmp");

dt1 &amp;lt;&amp;lt; Delete rows (1); //to make an outer join possible
dt2 &amp;lt;&amp;lt; delete rows (2); //to make an outer join possible

dtjoined = dt1 &amp;lt;&amp;lt; Join(
	With( dt2 ),
	Match Flag( 1 ), //&amp;lt;-use this later
	By Matching Columns( :Product Name = :Product Name ),
	Drop multiples( 0, 0 ),
	Include Nonmatches( 1, 1 ),
	Preserve main table order( 1 ),
	Output Table( "joined" )
);

dtjoined &amp;lt;&amp;lt; Select Where (:Match Flag == 3); //JMP uses column values for the text
dtjoined &amp;lt;&amp;lt; delete rows ();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditor_4741a14ec20b88Jed_Campbell_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jan 2023 21:41:53 GMT</pubDate>
    <dc:creator>Jed_Campbell</dc:creator>
    <dc:date>2023-01-20T21:41:53Z</dc:date>
    <item>
      <title>Is there a "true" outer-join in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-quot-true-quot-outer-join-in-JMP/m-p/591755#M79585</link>
      <description>&lt;P&gt;I am looking for a true outer-join that will return only the mis-matches between the tables based on the match column.&lt;/P&gt;&lt;P&gt;The dialogue allows for including non-matches to the inner match, but there's no option to just search for the non-matches and exclude the inner-match.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jun 2023 16:42:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-quot-true-quot-outer-join-in-JMP/m-p/591755#M79585</guid>
      <dc:creator>Lavik17</dc:creator>
      <dc:date>2023-06-08T16:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a "true" outer-join in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-quot-true-quot-outer-join-in-JMP/m-p/591771#M79586</link>
      <description>&lt;P&gt;I'm not aware of a direct way, but an indirect way is to choose the "Match Flag" option when creating the join, then you can manually/programmatically delete any rows that have the label "Both" in the "Match Flag" column. I've put a script below that does this as an example.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_0-1674250744415.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49303i20B08510ABF6D8F8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_0-1674250744415.png" alt="Jed_Campbell_0-1674250744415.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_1-1674250904700.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49306i99452386FF875CD3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_1-1674250904700.png" alt="Jed_Campbell_1-1674250904700.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1 = open ("$SAMPLE_DATA/Hot Dogs.jmp");
dt2 = open ("$SAMPLE_DATA/Hot Dogs2.jmp");

dt1 &amp;lt;&amp;lt; Delete rows (1); //to make an outer join possible
dt2 &amp;lt;&amp;lt; delete rows (2); //to make an outer join possible

dtjoined = dt1 &amp;lt;&amp;lt; Join(
	With( dt2 ),
	Match Flag( 1 ), //&amp;lt;-use this later
	By Matching Columns( :Product Name = :Product Name ),
	Drop multiples( 0, 0 ),
	Include Nonmatches( 1, 1 ),
	Preserve main table order( 1 ),
	Output Table( "joined" )
);

dtjoined &amp;lt;&amp;lt; Select Where (:Match Flag == 3); //JMP uses column values for the text
dtjoined &amp;lt;&amp;lt; delete rows ();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="tinyMceEditor_4741a14ec20b88Jed_Campbell_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 21:41:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-quot-true-quot-outer-join-in-JMP/m-p/591771#M79586</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2023-01-20T21:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a "true" outer-join in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-quot-true-quot-outer-join-in-JMP/m-p/591780#M79587</link>
      <description>&lt;P&gt;Is this the situation you are looking for?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1674250826473.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49304i34241112051D5DF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1674250826473.png" alt="jthi_2-1674250826473.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You could enable Match Flag, perform full outer join and remove rows which have Match Flags "Both".&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1674250557239.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49301iE1013C17A8FE2BA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1674250557239.png" alt="jthi_0-1674250557239.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1674250563731.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/49302iCD34CC328D673DE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1674250563731.png" alt="jthi_1-1674250563731.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jan 2023 21:45:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-quot-true-quot-outer-join-in-JMP/m-p/591780#M79587</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-01-20T21:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a "true" outer-join in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-quot-true-quot-outer-join-in-JMP/m-p/592755#M79671</link>
      <description>&lt;P&gt;Thank you, this would work!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 17:43:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-quot-true-quot-outer-join-in-JMP/m-p/592755#M79671</guid>
      <dc:creator>Lavik17</dc:creator>
      <dc:date>2023-01-24T17:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a "true" outer-join in JMP?</title>
      <link>https://community.jmp.com/t5/Discussions/Is-there-a-quot-true-quot-outer-join-in-JMP/m-p/592758#M79672</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I wish there was an "outer join" option to check when doing a join operation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 17:44:09 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Is-there-a-quot-true-quot-outer-join-in-JMP/m-p/592758#M79672</guid>
      <dc:creator>Lavik17</dc:creator>
      <dc:date>2023-01-24T17:44:09Z</dc:date>
    </item>
  </channel>
</rss>

