<?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 check if values in one datatable exist in another datatable in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-check-if-values-in-one-datatable-exist-in-another/m-p/20854#M18961</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not exactly sure what you are asking when you say, "capture that outside of Drop Multiples option".&amp;nbsp; If the data table created contains all of the data you want to count, you can easily get the count with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dtjoin = dt &amp;lt;&amp;lt; Join(..............);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;number of matches = N Rows(dtjoin);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can also use the "Match Flag" option from the input dialog screen to create a column called Match Flag, which will have the values of 1,2 or 3.&amp;nbsp; If the data is from the first data table, and no match in the second table, the value of Match Flag is 1.&amp;nbsp; Coming from the second table and no match with the first table, the value is 2, and if it finds a match, it's value is a 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Oct 2016 20:33:12 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2016-10-10T20:33:12Z</dc:date>
    <item>
      <title>How to check if values in one datatable exist in another datatable</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-check-if-values-in-one-datatable-exist-in-another/m-p/20851#M18958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I have 2 data tables (Table A and Table B) . Table A has a couple of 1000 rows while Table B has a couple of million rows . They have a common column lets say Col C - I want to get the rows of Table B which have matching values in Col C . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for( i = 1, i &amp;lt;= N Rows( TableA ), i++, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SelectedRows = TableB &amp;lt;&amp;lt; Get Rows Where(TalbeB:ColC == TableA:ColC1&lt;I&gt; ); &lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; While this works to some extent - it takes too long owing to the fact that table B is huge. Is there a better and efficient way to address this problem . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best &lt;/P&gt;&lt;P&gt;Uday &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Oct 2016 15:18:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-check-if-values-in-one-datatable-exist-in-another/m-p/20851#M18958</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2016-10-09T15:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if values in one datatable exist in another datatable</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-check-if-values-in-one-datatable-exist-in-another/m-p/20852#M18959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you want to do, is to run the Join Platform, and match on the columns you specify.&amp;nbsp; By default, it will create a new data table where only the matching rows remain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables==&amp;gt;Join&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="12956_pastedImage_0.png" style="width: 661px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/3816iF66AB6BB7D20E919/image-size/medium?v=v2&amp;amp;px=400" role="button" title="12956_pastedImage_0.png" alt="12956_pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 04:18:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-check-if-values-in-one-datatable-exist-in-another/m-p/20852#M18959</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-10-19T04:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if values in one datatable exist in another datatable</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-check-if-values-in-one-datatable-exist-in-another/m-p/20853#M18960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jim , &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for the helpful idea. If I may ask - I have a follow up question - if I need the number of matches in each case can I capture that outside the Drop Multiples option ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best &lt;BR /&gt;Uday &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 16:23:17 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-check-if-values-in-one-datatable-exist-in-another/m-p/20853#M18960</guid>
      <dc:creator>uday_guntupalli</dc:creator>
      <dc:date>2016-10-10T16:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to check if values in one datatable exist in another datatable</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-check-if-values-in-one-datatable-exist-in-another/m-p/20854#M18961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not exactly sure what you are asking when you say, "capture that outside of Drop Multiples option".&amp;nbsp; If the data table created contains all of the data you want to count, you can easily get the count with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dtjoin = dt &amp;lt;&amp;lt; Join(..............);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;number of matches = N Rows(dtjoin);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can also use the "Match Flag" option from the input dialog screen to create a column called Match Flag, which will have the values of 1,2 or 3.&amp;nbsp; If the data is from the first data table, and no match in the second table, the value of Match Flag is 1.&amp;nbsp; Coming from the second table and no match with the first table, the value is 2, and if it finds a match, it's value is a 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 20:33:12 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-check-if-values-in-one-datatable-exist-in-another/m-p/20854#M18961</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2016-10-10T20:33:12Z</dc:date>
    </item>
  </channel>
</rss>

