<?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/Update Table Function Help in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Join-Update-Table-Function-Help/m-p/386804#M63688</link>
    <description>&lt;P&gt;Can you try running the code below?&amp;nbsp; If this does not give the expected result, can you look in the 'source' script for the resulting table and see if that matches what you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am a little confused by colNamething1 would work in your script but not colNamething2. Maybe JMP is just happening to pick colNamething1 as a default column to join&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;colNamething1 = "Name 1 As String";
colNamething2 = "Name 2 As String";

Eval( Eval Expr(
	table3 = table1 &amp;lt;&amp;lt; Join(
		With( table2 ),
		By Matching Columns(
			Column( Expr( colNamething1 ) ) = Column( Expr( colNamething1 ) ),
			Column( Expr( colNamething2 ) ) = Column( Expr( colNamething2 ) )
		),
		Merge Same Name Columns
	)
) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 19 May 2021 13:29:29 GMT</pubDate>
    <dc:creator>ih</dc:creator>
    <dc:date>2021-05-19T13:29:29Z</dc:date>
    <item>
      <title>Join/Update Table Function Help</title>
      <link>https://community.jmp.com/t5/Discussions/Join-Update-Table-Function-Help/m-p/386763#M63686</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to execute a join (or an update) with columns that are referenced as a variable through a Parse(Eval( "String")) command either internal or external to the join command. I have multiple columns that I aim to match by but only the first set of matches is executing. See syntax below:&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;colNamething1 = Eval Insert( ":name(\!"^thing1^\!" )" );
colNamething2 = Eval Insert( ":name(\!"^thing2^\!" )" );

table3 = table1 &amp;lt;&amp;lt; Join(
    With( table2 ),
    By Matching Columns(
        Parse( colNamething1 ) = Parse( colNamething1 ),
        Parse( colNamething2 ) = Parse( colNamething2 )
    ),
    Merge Same Name Columns
);
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I run the script only colNamething1 is being matched by. I have also tried executing the Parse(Eval Insert("String")) command external to the join and get the same result. Any suggestions on how to get around this? Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Zac&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:30:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Join-Update-Table-Function-Help/m-p/386763#M63686</guid>
      <dc:creator>zrhelm17</dc:creator>
      <dc:date>2023-06-10T23:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Join/Update Table Function Help</title>
      <link>https://community.jmp.com/t5/Discussions/Join-Update-Table-Function-Help/m-p/386804#M63688</link>
      <description>&lt;P&gt;Can you try running the code below?&amp;nbsp; If this does not give the expected result, can you look in the 'source' script for the resulting table and see if that matches what you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am a little confused by colNamething1 would work in your script but not colNamething2. Maybe JMP is just happening to pick colNamething1 as a default column to join&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;colNamething1 = "Name 1 As String";
colNamething2 = "Name 2 As String";

Eval( Eval Expr(
	table3 = table1 &amp;lt;&amp;lt; Join(
		With( table2 ),
		By Matching Columns(
			Column( Expr( colNamething1 ) ) = Column( Expr( colNamething1 ) ),
			Column( Expr( colNamething2 ) ) = Column( Expr( colNamething2 ) )
		),
		Merge Same Name Columns
	)
) );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 May 2021 13:29:29 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Join-Update-Table-Function-Help/m-p/386804#M63688</guid>
      <dc:creator>ih</dc:creator>
      <dc:date>2021-05-19T13:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: Join/Update Table Function Help</title>
      <link>https://community.jmp.com/t5/Discussions/Join-Update-Table-Function-Help/m-p/386858#M63696</link>
      <description>&lt;P&gt;That works! Thank you for the help. Much appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 14:49:49 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Join-Update-Table-Function-Help/m-p/386858#M63696</guid>
      <dc:creator>zrhelm17</dc:creator>
      <dc:date>2021-05-19T14:49:49Z</dc:date>
    </item>
  </channel>
</rss>

