<?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: Joining multiple tables and output in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46892#M26719</link>
    <description>&lt;P&gt;To pile onto&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt; and my colleague &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4767"&gt;@Bill_Worley&lt;/a&gt; still yet another potential option is to use JMP 13's Virtual Table join capability as well. Here's the link to the JMP online documentation for the virtual join capability.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.jmp.com/support/help/13-2/Virtual_Join_Properties.shtml" target="_blank"&gt;http://www.jmp.com/support/help/13-2/Virtual_Join_Properties.shtml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2017 12:27:30 GMT</pubDate>
    <dc:creator>Peter_Bartell</dc:creator>
    <dc:date>2017-11-08T12:27:30Z</dc:date>
    <item>
      <title>Joining multiple tables and output</title>
      <link>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46835#M26682</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the Join table function and I think it's able to join one at a time(eg. dt1 join with dt2) and we will get an output table(dtnew). How can I use the now output table(eg. dtnew) to Join with another table(eg. dt3).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 08:49:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46835#M26682</guid>
      <dc:creator>adam</dc:creator>
      <dc:date>2017-11-07T08:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Joining multiple tables and output</title>
      <link>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46837#M26684</link>
      <description>&lt;P&gt;Here is one method that create separate tables for each join.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );

// Create the original table
dtBase = New Table( "Base Table",
	Add Rows( 10 ),
	New Column( "name",
		character,
		Set Values( {"KATIE", "LOUISE", "JANE", "JACLYN", "LILLIE", "TIM", "JAMES", "ROBERT", "BARBARA", "ALICE"} )
	),
	New Column( "age", Set Values( [12, 12, 12, 12, 12, 12, 12, 12, 13, 13] ) ),
	New Column( "sex", character, Set Values( {"F", "F", "F", "F", "F", "M", "M", "M", "F", "F"} ) )
);

// Create a second table
dt2 = New Table( "Height",
	Add Rows( 10 ),
	New Column( "name",
		character,
		Set Values( {"KATIE", "LOUISE", "JANE", "JACLYN", "LILLIE", "TIM", "JAMES", "ROBERT", "BARBARA", "ALICE"} )
	),
	New Column( "height", Set Values( [59, 61, 55, 66, 52, 60, 61, 51, 60, 61] ) ),
	Set Label Columns( :name )
);

// Join the two tables and create a reference to the new table
dtjoined = dtBase &amp;lt;&amp;lt; Join(
	With( dt2 ),
	By Matching Columns( :name = :name ),
	Drop multiples( 0, 0 ),
	Include Nonmatches( 0, 0 ),
	Preserve main table order( 1 ),
	Merge same name columns( 1 ),
	Match Flag( 0 )
);

// Close the nolonger needed tables and set the base table reference to the new table
Close( dtBase, nosave );
Close( dt2, nosave );
dtBase = dtjoined;

// Create another table to be joined
dt3 = New Table( "Weight",
	Add Rows( 10 ),
	New Column( "name",
		character,
		Set Values( {"KATIE", "LOUISE", "JANE", "JACLYN", "LILLIE", "TIM", "JAMES", "ROBERT", "BARBARA", "ALICE"} )
	),
	New Column( "weight", Set Values( [95, 123, 74, 145, 64, 84, 128, 79, 112, 107] ) ),
	Set Label Columns( :name )
);

// Join the new table
dtjoined = dtBase &amp;lt;&amp;lt; Join(
	With( dt3 ),
	By Matching Columns( :name = :name ),
	Drop multiples( 0, 0 ),
	Include Nonmatches( 0, 0 ),
	Preserve main table order( 1 ),
	Merge same name columns( 1 ),
	Match Flag( 0 )
);

// Close the nolonger needed tables and set the base table reference to the new table
Close( dtBase, nosave );
Close( dt3, nosave );
dtBase = dtjoined;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Nov 2017 09:31:23 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46837#M26684</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2017-11-07T09:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Joining multiple tables and output</title>
      <link>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46838#M26685</link>
      <description>Thanks, that's wonderful Jim ! I managed write one script that is similar but a little complex :)&lt;/img&gt; You just made it easier to for me to understand. Appreciate that..</description>
      <pubDate>Tue, 07 Nov 2017 10:10:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46838#M26685</guid>
      <dc:creator>adam</dc:creator>
      <dc:date>2017-11-07T10:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Joining multiple tables and output</title>
      <link>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46846#M26688</link>
      <description>&lt;P&gt;I am not sure if this is your intention, but if what you want is to join multiple tables and you are using JMP 13 you can go to the Tables drop down and select JMP Query Builder.&amp;nbsp; From there you can join up to 60 tables at once instead of having to script the a join.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 13:44:07 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46846#M26688</guid>
      <dc:creator>Bill_Worley</dc:creator>
      <dc:date>2017-11-07T13:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Joining multiple tables and output</title>
      <link>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46879#M26706</link>
      <description>&lt;P&gt;Thanks HTH ! That helps too. Never thought about it. Learning another new stuff :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 01:35:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46879#M26706</guid>
      <dc:creator>adam</dc:creator>
      <dc:date>2017-11-08T01:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Joining multiple tables and output</title>
      <link>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46892#M26719</link>
      <description>&lt;P&gt;To pile onto&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt; and my colleague &lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/4767"&gt;@Bill_Worley&lt;/a&gt; still yet another potential option is to use JMP 13's Virtual Table join capability as well. Here's the link to the JMP online documentation for the virtual join capability.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.jmp.com/support/help/13-2/Virtual_Join_Properties.shtml" target="_blank"&gt;http://www.jmp.com/support/help/13-2/Virtual_Join_Properties.shtml&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 12:27:30 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46892#M26719</guid>
      <dc:creator>Peter_Bartell</dc:creator>
      <dc:date>2017-11-08T12:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Joining multiple tables and output</title>
      <link>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46950#M26754</link>
      <description>&lt;P&gt;That would helps too and it saves memory. Thanks Pete :)&lt;/img&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 01:21:44 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46950#M26754</guid>
      <dc:creator>adam</dc:creator>
      <dc:date>2017-11-09T01:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Joining multiple tables and output</title>
      <link>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46951#M26755</link>
      <description>&lt;P&gt;One of the primary customer driven needs that was addressed by the JMP version 13 virtual join capability was the memory conservation footprint. So glad this works for your situation.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 01:28:37 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Joining-multiple-tables-and-output/m-p/46951#M26755</guid>
      <dc:creator>Peter_Bartell</dc:creator>
      <dc:date>2017-11-09T01:28:37Z</dc:date>
    </item>
  </channel>
</rss>

