<?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: row count from two files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295057#M67880</link>
    <description>&lt;P&gt;For the count of the missing values, just get the missing values with the sql query and put the result to a count(*).&lt;/P&gt;&lt;P&gt;This can all be done in one query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For two tables, table_1 and table_2, finding all missing values in table_2 with an arbitrary ID and count them:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT count(t1.ID) FROM table_1 AS t1&lt;/P&gt;&lt;P&gt;LEFT JOIN table_2 AS t2 ON&lt;/P&gt;&lt;P&gt;t1.ID=t2.ID&lt;/P&gt;&lt;P&gt;WHERE t2.ID IS NULL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to find all values missing in table_1, just interchange the table names in the query.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2020 14:08:22 GMT</pubDate>
    <dc:creator>cadap</dc:creator>
    <dc:date>2020-10-01T14:08:22Z</dc:date>
    <item>
      <title>row count from two files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295052#M67875</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my job, I am getting the input from database (MySQL) table. I want to get the row count of two input tables and want to compare the count. If the count id not equal, then the mail has to be triggered with the missing values as subject. Could anyone help me with the procedure?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295052#M67875</guid>
      <dc:creator>shalinim1</dc:creator>
      <dc:date>2024-11-16T01:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: row count from two files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295053#M67876</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Use a tMysqlInput to execute a count query, and store the count to context variable for comparison later, for example:&lt;/P&gt;&lt;P&gt;tMysqlinput1--tJavaRow1&lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt;tMysqlinput2--tJavaRow2&lt;/P&gt;&lt;P&gt;|onsubjobok&lt;/P&gt;&lt;P&gt;tJava--runIf--tSendmail&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;on tJavaRow1:&lt;/P&gt;&lt;P&gt;context.count1=input_row.count;&lt;/P&gt;&lt;P&gt;on tJavaRow2:&lt;/P&gt;&lt;P&gt;context.count2=input_row.count;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;on tJava:&lt;/P&gt;&lt;P&gt;if(context.count1==context.count2){&lt;/P&gt;&lt;P&gt;context.sendMail=false;&lt;/P&gt;&lt;P&gt;}else{&lt;/P&gt;&lt;P&gt;context.sendMail=true;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;conext.count1, context count2 are context variables, int type.&lt;/P&gt;&lt;P&gt;context.sendMail, context variable, boolean type. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Set the condition of runif as: context.sendMail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 09:41:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295053#M67876</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-09-24T09:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: row count from two files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295054#M67877</link>
      <description>&lt;P&gt;@Shalini M​&amp;nbsp;, you take the two count queries and use in tDBInputs and the connect to tmap and then do inner join and take the innerjoin rejects to output in tMap and connect to tSendemail compontn to trigger email.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 09:44:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295054#M67877</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-09-24T09:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: row count from two files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295055#M67878</link>
      <description>&lt;P&gt;do you really need the count or only the differing id values?&lt;/P&gt;&lt;P&gt;if you need the differing values, you can perform this with a single sql query.&lt;/P&gt;&lt;P&gt;In MSSQL one would do this with the EXCEPT keyword.&lt;/P&gt;&lt;P&gt;But in MySQL you have to use Joins or Subselects.&lt;/P&gt;&lt;P&gt;This page explains it well:&lt;/P&gt;&lt;P&gt;http://www.geeksengine.com/database/multiple-table-select/minus-except.php&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 20:32:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295055#M67878</guid>
      <dc:creator>cadap</dc:creator>
      <dc:date>2020-09-30T20:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: row count from two files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295056#M67879</link>
      <description>&lt;P&gt;Thank you will check on it. I need the count of missing values and that count should be included as Subject in the mail we are triggering!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 05:23:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295056#M67879</guid>
      <dc:creator>shalinim1</dc:creator>
      <dc:date>2020-10-01T05:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: row count from two files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295057#M67880</link>
      <description>&lt;P&gt;For the count of the missing values, just get the missing values with the sql query and put the result to a count(*).&lt;/P&gt;&lt;P&gt;This can all be done in one query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For two tables, table_1 and table_2, finding all missing values in table_2 with an arbitrary ID and count them:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT count(t1.ID) FROM table_1 AS t1&lt;/P&gt;&lt;P&gt;LEFT JOIN table_2 AS t2 ON&lt;/P&gt;&lt;P&gt;t1.ID=t2.ID&lt;/P&gt;&lt;P&gt;WHERE t2.ID IS NULL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to find all values missing in table_1, just interchange the table names in the query.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2020 14:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295057#M67880</guid>
      <dc:creator>cadap</dc:creator>
      <dc:date>2020-10-01T14:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: row count from two files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295058#M67881</link>
      <description>&lt;P&gt;getting row count of a table is okay. how to make it as the subject of mail? When I tried with a java code. it is sending mail with the entire code as subject.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2020 14:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295058#M67881</guid>
      <dc:creator>shalinim1</dc:creator>
      <dc:date>2020-10-03T14:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: row count from two files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295059#M67882</link>
      <description>&lt;P&gt;@Shalini M​&amp;nbsp; you need to use your context value in the subject field&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p000009rPvRAAU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136196i3AB36AC29FB04399/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p000009rPvRAAU.png" alt="0693p000009rPvRAAU.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2020 19:41:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295059#M67882</guid>
      <dc:creator>DataTeam1</dc:creator>
      <dc:date>2020-10-05T19:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: row count from two files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295060#M67883</link>
      <description>&lt;P&gt;Thank you. Will check on it.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2020 03:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/row-count-from-two-files/m-p/2295060#M67883</guid>
      <dc:creator>shalinim1</dc:creator>
      <dc:date>2020-10-06T03:49:43Z</dc:date>
    </item>
  </channel>
</rss>

