<?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: How to Join and get common matching columns in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-Join-and-get-common-matching-columns/m-p/10774#M10398</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you've summarized the behaviors and limitations pretty well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll pass them along to our development staff to see if we can make some improvements in a future release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Feb 2015 13:52:47 GMT</pubDate>
    <dc:creator>Jeff_Perkinson</dc:creator>
    <dc:date>2015-02-04T13:52:47Z</dc:date>
    <item>
      <title>How to Join and get common matching columns</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Join-and-get-common-matching-columns/m-p/10771#M10395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One of the things that I'm struggling with in JMP is the fact that, when I want to do a many-for-many table join using the "Join" function on matching columns, then the match columns in the resulting table always get/stay segregated between each of the two source tables.&amp;nbsp; JMP doesn't seem to provide an automatic or convenient way to get the common match column(s) with the values filled in for all rows regardless of which source table the key was present in.&amp;nbsp; It would be able to get such common fully-filled match column(s), with "presence" columns to indicate whether that key was present in each source table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me illustrate with an example.&amp;nbsp; Suppose I have two tables, "&lt;STRONG&gt;ArtClass&lt;/STRONG&gt;" and "&lt;STRONG&gt;GymClass&lt;/STRONG&gt;".&amp;nbsp; The "primary key" in each table is the combination of "&lt;STRONG&gt;FirstName&lt;/STRONG&gt;" and "&lt;STRONG&gt;LastInitial&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;ArtClass&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/H4&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 332px; border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;FirstName&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;LastInitial&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Favorite color&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Score&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;John&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;John&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Blue&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Alice&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Alice&lt;/TD&gt;&lt;TD&gt;M&lt;/TD&gt;&lt;TD&gt;Yellow&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Bob&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;Purple&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Sally&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;Blue&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;GymClass&lt;/STRONG&gt;&lt;/SPAN&gt;:&lt;/H4&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" style="width: 332px; border-width: 1px; border-style: solid;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;FirstName&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;LastInitial&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Favorite activity&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Score&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;John&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;Monkey bars&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;John&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Shot put&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Alice&lt;/TD&gt;&lt;TD&gt;P&lt;/TD&gt;&lt;TD&gt;Soccer&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Bob&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;Basketball&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Sally&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;Field hockey&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Bob&lt;/TD&gt;&lt;TD&gt;M&lt;/TD&gt;&lt;TD&gt;Crunches&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I do a Join on Matching Columns, equating FirstName and LastInitial, without dropping multiples and including non-matches in both tables (an "outer join"), then I obtain the following, which we'll call "&lt;STRONG&gt;Students1&lt;/STRONG&gt;" (&lt;EM&gt;Edit: Please forgive me if any of these tables are getting cut off the screen; maybe try copying this into a MS Word document because of how this webpage displays.&lt;/EM&gt;:(&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;Students1:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/H4&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" height="310" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 609px; border-width: 1px; border-style: solid; height: 291px;" width="608"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;&lt;STRONG&gt;FirstName of ArtClass&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;&lt;STRONG&gt;LastInitial of ArtClass&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Favorite color&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Score of ArtClass&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;&lt;STRONG&gt;FirstName of GymClass&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;&lt;STRONG&gt;LastInitial of GymClass&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Favorite activity&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Score of GymClass&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Shot put&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Alice&lt;/TD&gt;&lt;TD&gt;P&lt;/TD&gt;&lt;TD&gt;Soccer&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;TD&gt;M&lt;/TD&gt;&lt;TD&gt;Crunches&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;John&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD&gt;John&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;Monkey bars&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;John&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Blue&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Alice&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Alice&lt;/TD&gt;&lt;TD&gt;M&lt;/TD&gt;&lt;TD&gt;Yellow&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Bob&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;Purple&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;Basketball&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Sally&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;Blue&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD&gt;Sally&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;Field hockey&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would much rather get is the following kind of table, which we'll call "&lt;STRONG&gt;Students2&lt;/STRONG&gt;":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H4&gt;Students2:&lt;/H4&gt;&lt;TABLE border="1px" cellpadding="0" cellspacing="0" height="310" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 563px; border-width: 1px; border-style: solid; height: 278px;" width="562"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;&lt;STRONG&gt;FirstName&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;&lt;STRONG&gt;LastInitial&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Favorite color&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Score of ArtClass&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;&lt;STRONG&gt;Present in ArtClass&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Favorite activity&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;Score of GymClass&lt;/TH&gt;&lt;TH style="color: #ffffff; background-color: #6690bc; text-align: center; padding: 2px;"&gt;&lt;STRONG&gt;Present in GymClass&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Alice&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;Green&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Alice&lt;/TD&gt;&lt;TD&gt;M&lt;/TD&gt;&lt;TD&gt;Yellow&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Alice&lt;/TD&gt;&lt;TD&gt;P&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD&gt;Soccer&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Bob&lt;/TD&gt;&lt;TD&gt;M&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD&gt;Crunches&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Bob&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;Purple&lt;/TD&gt;&lt;TD align="right"&gt;6&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD&gt;Basketball&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;John&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD&gt;Shot put&lt;/TD&gt;&lt;TD align="right"&gt;7&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;John&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;Blue&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;John&lt;/TD&gt;&lt;TD&gt;S&lt;/TD&gt;&lt;TD&gt;Red&lt;/TD&gt;&lt;TD align="right"&gt;4&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD&gt;Monkey bars&lt;/TD&gt;&lt;TD align="right"&gt;8&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Sally&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;Blue&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;TD&gt;Field hockey&lt;/TD&gt;&lt;TD align="right"&gt;5&lt;/TD&gt;&lt;TD align="right"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notice how in the second version, I have just one common set of the matching columns -- &lt;STRONG&gt;FirstName&lt;/STRONG&gt; and &lt;STRONG&gt;LastInitial&lt;/STRONG&gt; -- which is fully populated for all rows.&amp;nbsp; I also have columns to tell me if the key was present in each of the source tables (ArtClass and GymClass).&amp;nbsp; In contrast, in the first version (&lt;STRONG&gt;Students1)&lt;/STRONG&gt;, the only way you can tell if each key was present in each source table, is by seeing if the segregated key columns ("&lt;STRONG&gt;FirstName of ArtClass&lt;/STRONG&gt;"/"&lt;STRONG&gt;LastInitial of ArtClass&lt;/STRONG&gt;", "&lt;STRONG&gt;FirstName of GymClass&lt;/STRONG&gt;"/"&lt;STRONG&gt;LastInitial of GymClass&lt;/STRONG&gt;") are missing or present.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A way that I contrived the second version, &lt;STRONG&gt;Students2&lt;/STRONG&gt;, was by doing the following roundabout procedure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Subset&lt;/STRONG&gt; or &lt;STRONG&gt;Summary&lt;/STRONG&gt; each of the two source tables (&lt;STRONG&gt;ArtClass&lt;/STRONG&gt; and &lt;STRONG&gt;GymClass&lt;/STRONG&gt;) by the match columns, "&lt;STRONG&gt;FirstName&lt;/STRONG&gt;" and "&lt;STRONG&gt;LastInitial&lt;/STRONG&gt;".&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Concatenate&lt;/STRONG&gt; the two subset tables made in #1.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Summary&lt;/STRONG&gt; the table made in #2 by the match columns ("&lt;STRONG&gt;FirstName&lt;/STRONG&gt;", "&lt;STRONG&gt;LastInitial&lt;/STRONG&gt;") to remove duplicates and get the unique keys of the joined table; remove the "N Rows" column.&lt;/LI&gt;&lt;LI&gt;In &lt;STRONG&gt;ArtClass&lt;/STRONG&gt;, temporarily add a constant column "&lt;STRONG&gt;Present in ArtClass&lt;/STRONG&gt;" set to all ones.&lt;/LI&gt;&lt;LI&gt;In &lt;STRONG&gt;GymClass&lt;/STRONG&gt;, temporarily add a constant column "&lt;STRONG&gt;Present in GymClass&lt;/STRONG&gt;" set to all ones.&lt;/LI&gt;&lt;LI&gt;In &lt;STRONG&gt;ArtClass&lt;/STRONG&gt;, temporarily change "&lt;STRONG&gt;Score&lt;/STRONG&gt;" to "&lt;STRONG&gt;Score of ArtClass&lt;/STRONG&gt;" to disambiguate this column from the one in GymClass.&lt;/LI&gt;&lt;LI&gt;In &lt;STRONG&gt;GymClass&lt;/STRONG&gt;, temporarily change "&lt;STRONG&gt;Score&lt;/STRONG&gt;" to "&lt;STRONG&gt;Score of GymClass&lt;/STRONG&gt;" to disambiguate this column from the one in ArtClass.&lt;/LI&gt;&lt;LI&gt;In the table made in #3, Update from each of the two temporarily-modified source tables (&lt;STRONG&gt;ArtClass&lt;/STRONG&gt; and &lt;STRONG&gt;GymClass&lt;/STRONG&gt;), matching on "&lt;STRONG&gt;FirstName&lt;/STRONG&gt;" and "&lt;STRONG&gt;LastInitial&lt;/STRONG&gt;" and adding all columns.&amp;nbsp; (2 separate operations)&lt;/LI&gt;&lt;LI&gt;In the same table, select the columns "&lt;STRONG&gt;Present in ArtClass&lt;/STRONG&gt;" and "&lt;STRONG&gt;Present in GymClass&lt;/STRONG&gt;"; do &lt;STRONG&gt;Standardize Attributes&lt;/STRONG&gt; and &lt;STRONG&gt;Recode&lt;/STRONG&gt; the missing value to be 0 instead, so that the "presence" values are 0 or 1.&amp;nbsp; This is the desired result, &lt;STRONG&gt;Students2&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that, in this procedure for making &lt;STRONG&gt;Students2&lt;/STRONG&gt;, I had to manually segregate the conflicting &lt;STRONG&gt;non-key&lt;/STRONG&gt; column, "&lt;STRONG&gt;Score&lt;/STRONG&gt;", which the &lt;STRONG&gt;Join&lt;/STRONG&gt; function had originally done for me automatically when making &lt;STRONG&gt;Students1&lt;/STRONG&gt; (by changing each "&lt;STRONG&gt;Score&lt;/STRONG&gt;" to "&lt;STRONG&gt;Score of...&lt;/STRONG&gt;"), which is what I wanted it to do.&amp;nbsp; However, the problem with the &lt;STRONG&gt;Join&lt;/STRONG&gt; function is that it does the same thing for the &lt;STRONG&gt;key&lt;/STRONG&gt; columns, which I &lt;EM&gt;do not&lt;/EM&gt; want it to do -- I want the key columns to be common for the entire joined table, with separate columns to flag the presence in each source table.&amp;nbsp; My procedure above is not scalable to situations where you might have many more conflicting non-key columns for your data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only alternative method I've realized, is to use the &lt;STRONG&gt;Join&lt;/STRONG&gt; function as before, but to manually add a formula column for &lt;STRONG&gt;every single match column&lt;/STRONG&gt; that would combine the segregated pair of that match column (e.g. "&lt;STRONG&gt;FirstName&lt;/STRONG&gt;" would be a formula column on "&lt;STRONG&gt;FirstName of ArtClass&lt;/STRONG&gt;" and "&lt;STRONG&gt;FirstName of GymClass&lt;/STRONG&gt;"), and also add formula columns for presence in each source table that would have to test if all of the segregated match columns corresponding to each source table are missing or not (for example, "&lt;STRONG&gt;Present in ArtClass&lt;/STRONG&gt;" would be a forumula of whether both "&lt;STRONG&gt;FirstName of ArtClass&lt;/STRONG&gt;" and "&lt;STRONG&gt;LastInitial of ArtClass&lt;/STRONG&gt;" are missing).&amp;nbsp; This is also a very tedious, roundabout process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm wondering if there's a better, efficient solution for what I'm trying to do -- i.e. to generate &lt;STRONG&gt;Students2&lt;/STRONG&gt; in my example?&amp;nbsp; Would it be with a script or add-in of some kind?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In addition, would SAS potentially consider something like this as a future feature extension for JMP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any assistance with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 22:29:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Join-and-get-common-matching-columns/m-p/10771#M10395</guid>
      <dc:creator>a01</dc:creator>
      <dc:date>2015-02-03T22:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Join and get common matching columns</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Join-and-get-common-matching-columns/m-p/10772#M10396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's a "Merge same name columns" option in the Join dialog that will do as its name suggests and get you one set of &lt;STRONG&gt;First Name &lt;/STRONG&gt;and&lt;STRONG&gt; Last Initial&lt;/STRONG&gt; columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example, you've got a column named Score in each table so you'll need to rename them to &lt;STRONG&gt;Gym Score&lt;/STRONG&gt; and &lt;STRONG&gt;Art Score&lt;/STRONG&gt;. After doing that you can complete the Join dialog like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8008_Join_and_Art_Class_and_Gym_Class.png" style="width: 698px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1177i63E75169169927C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8008_Join_and_Art_Class_and_Gym_Class.png" alt="8008_Join_and_Art_Class_and_Gym_Class.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you get a data table like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="8010_untitled_13_and_Art_Class.png" style="width: 863px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/1178i4ABF7B7A43BB4286/image-size/medium?v=v2&amp;amp;px=400" role="button" title="8010_untitled_13_and_Art_Class.png" alt="8010_untitled_13_and_Art_Class.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Match Flag column indicates which tables contributed to each row. 1==Main Table, 2==With Table, 3 == Both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that's what you're looking for, or awfully close anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 22:28:16 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Join-and-get-common-matching-columns/m-p/10772#M10396</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2016-10-18T22:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to Join and get common matching columns</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Join-and-get-common-matching-columns/m-p/10773#M10397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, excellent!&amp;nbsp; (Thanks for the fast response.)&amp;nbsp; I guess that was right under my nose in a way, and I can't quite remember if I might have tried that checkbox a long time ago and forgotten about what it does.&amp;nbsp; I'd say that solves the majority of this problem, because it's pretty simple to Recode "Match Flag" (e.g. into "ArtClass"/"GymClass"/"Both") or split it up into two separate "presence" columns if desired (like I had in &lt;STRONG&gt;Students2&lt;/STRONG&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose the only caveat here, however, is that &lt;STRONG&gt;there could be a lot of manual column renaming required&lt;/STRONG&gt; if there are many analogous non-key columns with common names like "&lt;STRONG&gt;Score&lt;/STRONG&gt;" in my example.&amp;nbsp; It looks like if you don't rename the common non-key column(s), then apparently those column(s) in the resulting joined table seem to take the value arbitrarily from one source table or the other.&amp;nbsp; (Perhaps there is some internal method as to which one "wins".)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way, the "&lt;STRONG&gt;Join&lt;/STRONG&gt;" utility is giving us a choice between either:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (a) disambiguating everything automatically which we want but segregating the key columns which we don't want, when we &lt;EM&gt;don't&lt;/EM&gt; select "Merge same column names", as in generating &lt;STRONG&gt;Students1&lt;/STRONG&gt; in my post, or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (b) commonly combining the match columns and giving a presence-indicating column, which we want, but letting non-key columns with common names conflict with each other, which we don't want -- when we &lt;EM&gt;do&lt;/EM&gt; select "Merge same column names".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you know of a good workaround to this caveat?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, thanks for pointing this out!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 23:20:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Join-and-get-common-matching-columns/m-p/10773#M10397</guid>
      <dc:creator>a01</dc:creator>
      <dc:date>2015-02-03T23:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to Join and get common matching columns</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-Join-and-get-common-matching-columns/m-p/10774#M10398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you've summarized the behaviors and limitations pretty well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll pass them along to our development staff to see if we can make some improvements in a future release.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 13:52:47 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-Join-and-get-common-matching-columns/m-p/10774#M10398</guid>
      <dc:creator>Jeff_Perkinson</dc:creator>
      <dc:date>2015-02-04T13:52:47Z</dc:date>
    </item>
  </channel>
</rss>

