<?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: Join tables with like method (contains) in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450736#M69762</link>
    <description>&lt;P&gt;It could be that JMP doesn't offer that function, but I'm not sure about that.&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jan 2022 10:31:11 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2022-01-12T10:31:11Z</dc:date>
    <item>
      <title>Join tables with like method (contains)</title>
      <link>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450393#M69719</link>
      <description>&lt;P&gt;hey, is it possible to join tables not with equal sign (=) but with like method (%) or something similar?&lt;BR /&gt;for example: in one table I have column of names, in the second table I have column of parts of those name and i want them to match&lt;BR /&gt;"america"--&amp;gt; "ame", "eric" ect...&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:42:22 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450393#M69719</guid>
      <dc:creator>shiro</dc:creator>
      <dc:date>2023-06-10T23:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables with like method (contains)</title>
      <link>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450472#M69730</link>
      <description>&lt;P&gt;One way that could work to do this, would be to create a new column in the matching data table, and to use the contains within the formula in that column.&amp;nbsp; If the target column contains "ame" and "eric" then the new column would be given the value "america".&amp;nbsp; Then the joining would be completed by matching with the new formula column.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 15:20:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450472#M69730</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-01-11T15:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables with like method (contains)</title>
      <link>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450524#M69733</link>
      <description>&lt;P&gt;You could also use Query (but I would most likely formula + update/join method):&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt1 = New Table("Untitled",
	Add Rows(4),
	New Column("Col", Character, "Nominal", Set Values({"america", "america", "test", "test"})),
	New Column("Val", Numeric, "Continuous", Format("Best", 12), Set Values([1, 2, 3, 4]))
);

dt2 = New Table("Untitled",
	Add Rows(2),
	New Column("Col", Character, "Nominal", Set Values({"ame", "rica"})),
	New Column("Val", Numeric, "Continuous", Format("Best", 12), Set Values([11, 22]))
);

wait(1);
dt3 = Query(
	Table(dt1, "t1"),
	Table(dt2, "t2"), 
	"\[SELECT *
	FROM t1
	LEFT OUTER JOIN t2 ON t1.col like '%'||t2.col||'%'
	]\"
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1641916637015.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38911i91DEC02898F35F7F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1641916637015.png" alt="jthi_0-1641916637015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 15:58:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450524#M69733</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-01-11T15:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables with like method (contains)</title>
      <link>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450558#M69742</link>
      <description>&lt;P&gt;thank you for your answer,&lt;/P&gt;&lt;P&gt;how do I install SQL in JMP?&lt;/P&gt;&lt;P&gt;I keep getting this error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shiro_0-1641929954141.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/38914iB8D6A350C1BED4B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="shiro_0-1641929954141.png" alt="shiro_0-1641929954141.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jan 2022 19:39:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450558#M69742</guid>
      <dc:creator>shiro</dc:creator>
      <dc:date>2022-01-11T19:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables with like method (contains)</title>
      <link>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450697#M69755</link>
      <description>&lt;P&gt;I think that should work by default in JMP without SQL installations. Which JMP version are you using?&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.jmp.com/support/help/en/16.1/#page/jmp/sql-functions.shtml?os=win&amp;amp;source=application&amp;amp;utm_source=helpmenu&amp;amp;utm_medium=application#ww6050839" target="_blank"&gt;SQL Functions (jmp.com)&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;A href="https://www.jmp.com/support/help/en/16.1/index.shtml#page/jmp/write-a-sql-query.shtml#ww544392" target="_blank"&gt;Write a SQL Query (jmp.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 05:21:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450697#M69755</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-01-12T05:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables with like method (contains)</title>
      <link>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450733#M69760</link>
      <description>&lt;P&gt;jmp12&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 09:12:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450733#M69760</guid>
      <dc:creator>shiro</dc:creator>
      <dc:date>2022-01-12T09:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables with like method (contains)</title>
      <link>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450736#M69762</link>
      <description>&lt;P&gt;It could be that JMP doesn't offer that function, but I'm not sure about that.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 10:31:11 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450736#M69762</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2022-01-12T10:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables with like method (contains)</title>
      <link>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450740#M69764</link>
      <description>&lt;P&gt;The SQL Query functionality was added in JMP 13&lt;/P&gt;
&lt;P&gt;The following syntax failed in JMP 12 but executed without error in JMP 13&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
result = Query( dt, "SELECT * FROM 'Big Class' WHERE age &amp;gt; 14;" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Jan 2022 11:11:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450740#M69764</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2022-01-12T11:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: Join tables with like method (contains)</title>
      <link>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450923#M69784</link>
      <description>&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2022 19:17:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Join-tables-with-like-method-contains/m-p/450923#M69784</guid>
      <dc:creator>shiro</dc:creator>
      <dc:date>2022-01-12T19:17:20Z</dc:date>
    </item>
  </channel>
</rss>

