<?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: Create a new concatenated table based on two existing tables in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Create-a-new-concatenated-table-based-on-two-existing-tables/m-p/763058#M94390</link>
    <description>&lt;P&gt;Tables/Join can do the Job -&amp;nbsp;use as match specification &lt;STRONG&gt;Cartesian Join:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1718051388933.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65078i73C5AA0460B22B20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1718051388933.png" alt="hogi_0-1718051388933.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column names in both tables should differ from each other, otherwise the name of the source table will be added to the column name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1 = New Table( "dt1",
	Add Rows( 3 ),
	New Column( "Column 1", Character, Set Values( {"A", "B", "C"} ) ),
	New Column( "Column 2",	Set Values( [1, 2, 3] )	),
	New Column( "Column 3",	Set Values( [1, 2, 3] )	)
);

dt2 = New Table( "dt2",
	Add Rows( 3 ),
	New Column( "Column 4",
		Character,
		Set Values( {"X", "Y", "Z"} )
	)
);

dt1 &amp;lt;&amp;lt; Join(
	With( dt2 ),
	Cartesian Join
);&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Jun 2024 20:31:42 GMT</pubDate>
    <dc:creator>hogi</dc:creator>
    <dc:date>2024-06-10T20:31:42Z</dc:date>
    <item>
      <title>Create a new concatenated table based on two existing tables</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-new-concatenated-table-based-on-two-existing-tables/m-p/763057#M94389</link>
      <description>&lt;P&gt;Hi, I have input table A that looks like this,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AsymptoticCos_0-1718049427700.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65075i58AD208092B060ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AsymptoticCos_0-1718049427700.png" alt="AsymptoticCos_0-1718049427700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Input Table B looks like this,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AsymptoticCos_1-1718049469170.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65076i4B76FBDA53C082B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AsymptoticCos_1-1718049469170.png" alt="AsymptoticCos_1-1718049469170.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to create an output table C: that should look like this,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="AsymptoticCos_2-1718049508970.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65077i786C828EF6F34BFD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="AsymptoticCos_2-1718049508970.png" alt="AsymptoticCos_2-1718049508970.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can do this manually. Is there a way to script this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 19:59:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-new-concatenated-table-based-on-two-existing-tables/m-p/763057#M94389</guid>
      <dc:creator>AsymptoticCos</dc:creator>
      <dc:date>2024-06-10T19:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create a new concatenated table based on two existing tables</title>
      <link>https://community.jmp.com/t5/Discussions/Create-a-new-concatenated-table-based-on-two-existing-tables/m-p/763058#M94390</link>
      <description>&lt;P&gt;Tables/Join can do the Job -&amp;nbsp;use as match specification &lt;STRONG&gt;Cartesian Join:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1718051388933.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/65078i73C5AA0460B22B20/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1718051388933.png" alt="hogi_0-1718051388933.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The column names in both tables should differ from each other, otherwise the name of the source table will be added to the column name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt1 = New Table( "dt1",
	Add Rows( 3 ),
	New Column( "Column 1", Character, Set Values( {"A", "B", "C"} ) ),
	New Column( "Column 2",	Set Values( [1, 2, 3] )	),
	New Column( "Column 3",	Set Values( [1, 2, 3] )	)
);

dt2 = New Table( "dt2",
	Add Rows( 3 ),
	New Column( "Column 4",
		Character,
		Set Values( {"X", "Y", "Z"} )
	)
);

dt1 &amp;lt;&amp;lt; Join(
	With( dt2 ),
	Cartesian Join
);&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 20:31:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Create-a-new-concatenated-table-based-on-two-existing-tables/m-p/763058#M94390</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2024-06-10T20:31:42Z</dc:date>
    </item>
  </channel>
</rss>

