<?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: compare the count between the two tables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/compare-the-count-between-the-two-tables/m-p/2253721#M36964</link>
    <description>What about a query like select count(1) as count_rows from table1 where..... and so on.
&lt;BR /&gt;Add 2 database input components to your job.
&lt;BR /&gt;Put your query for the tables into them (one by one).
&lt;BR /&gt;Click on retrieve schema to get a schema from your query.
&lt;BR /&gt;Create 2 context variables count1 and count2 from type Integer.
&lt;BR /&gt;You can memorize the received value into a context variable.
&lt;BR /&gt;Example:
&lt;BR /&gt;tMysqlInput_1 --&amp;gt; tJavaRow_1
&lt;BR /&gt;Code for tJava_1:
&lt;BR /&gt;
&lt;PRE&gt;context.count1 = input_row.count_rows;&lt;/PRE&gt;
&lt;BR /&gt;Do the same for your table2.
&lt;BR /&gt;Now you have 2 filled context variables with counters.
&lt;BR /&gt;By the way, your topic is in the wrong forum!</description>
    <pubDate>Wed, 18 Dec 2013 18:09:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-12-18T18:09:25Z</dc:date>
    <item>
      <title>compare the count between the two tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compare-the-count-between-the-two-tables/m-p/2253720#M36963</link>
      <description>Hi,
&lt;BR /&gt; i have task to compare two views (multiple table combination) or select query with multiple table joined to get count of both views and display this difference in output file,
&lt;BR /&gt;My output file should display like this
&lt;BR /&gt;table1 count table2 count Difference 
&lt;BR /&gt; 100 500 400
&lt;BR /&gt;im very new to talend, thanks in advance.</description>
      <pubDate>Wed, 18 Dec 2013 12:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compare-the-count-between-the-two-tables/m-p/2253720#M36963</guid>
      <dc:creator>TamilM</dc:creator>
      <dc:date>2013-12-18T12:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: compare the count between the two tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/compare-the-count-between-the-two-tables/m-p/2253721#M36964</link>
      <description>What about a query like select count(1) as count_rows from table1 where..... and so on.
&lt;BR /&gt;Add 2 database input components to your job.
&lt;BR /&gt;Put your query for the tables into them (one by one).
&lt;BR /&gt;Click on retrieve schema to get a schema from your query.
&lt;BR /&gt;Create 2 context variables count1 and count2 from type Integer.
&lt;BR /&gt;You can memorize the received value into a context variable.
&lt;BR /&gt;Example:
&lt;BR /&gt;tMysqlInput_1 --&amp;gt; tJavaRow_1
&lt;BR /&gt;Code for tJava_1:
&lt;BR /&gt;
&lt;PRE&gt;context.count1 = input_row.count_rows;&lt;/PRE&gt;
&lt;BR /&gt;Do the same for your table2.
&lt;BR /&gt;Now you have 2 filled context variables with counters.
&lt;BR /&gt;By the way, your topic is in the wrong forum!</description>
      <pubDate>Wed, 18 Dec 2013 18:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/compare-the-count-between-the-two-tables/m-p/2253721#M36964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-18T18:09:25Z</dc:date>
    </item>
  </channel>
</rss>

