<?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: perform select count(*) from table (oracle ) in talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/perform-select-count-from-table-oracle-in-talend/m-p/2298634#M71071</link>
    <description>&lt;P&gt;You can achive this by using tOracleInput, tJavaRow and tMap.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TableRecordCnt.PNG" style="width: 712px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwyP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146767i16983B6058BBC4AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwyP.png" alt="0683p000009LwyP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Read table name using tOracleInput any other source. assign table name to context variable using tJavarow.&lt;/P&gt; 
&lt;P&gt;Use that context variable in another tOracleInput to get record count.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TableRecordcnt1.PNG" style="width: 792px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lwj8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139120i7557B8E12C2EF402/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lwj8.png" alt="0683p000009Lwj8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TableRecordcnt2.PNG" style="width: 956px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lwme.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154775iDF145D10B08C1913/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lwme.png" alt="0683p000009Lwme.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TableRecordcnt3.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lx26.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146617iFB9EC29F284AC082/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lx26.png" alt="0683p000009Lx26.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt;</description>
    <pubDate>Thu, 26 Apr 2018 19:51:27 GMT</pubDate>
    <dc:creator>vboppudi</dc:creator>
    <dc:date>2018-04-26T19:51:27Z</dc:date>
    <item>
      <title>perform select count(*) from table (oracle ) in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/perform-select-count-from-table-oracle-in-talend/m-p/2298633#M71070</link>
      <description>&lt;P&gt;I want to get all row count of table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Select count(*) from table;&lt;/P&gt;&lt;P&gt;and i want to use this count further in code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;use case:&lt;/P&gt;&lt;P&gt;i have 180 tables in db.&lt;/P&gt;&lt;P&gt;i want to get count of all 180 tables one by one.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 18:15:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/perform-select-count-from-table-oracle-in-talend/m-p/2298633#M71070</guid>
      <dc:creator>YPMAL</dc:creator>
      <dc:date>2018-04-26T18:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: perform select count(*) from table (oracle ) in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/perform-select-count-from-table-oracle-in-talend/m-p/2298634#M71071</link>
      <description>&lt;P&gt;You can achive this by using tOracleInput, tJavaRow and tMap.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TableRecordCnt.PNG" style="width: 712px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwyP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146767i16983B6058BBC4AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwyP.png" alt="0683p000009LwyP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Read table name using tOracleInput any other source. assign table name to context variable using tJavarow.&lt;/P&gt; 
&lt;P&gt;Use that context variable in another tOracleInput to get record count.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TableRecordcnt1.PNG" style="width: 792px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lwj8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139120i7557B8E12C2EF402/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lwj8.png" alt="0683p000009Lwj8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TableRecordcnt2.PNG" style="width: 956px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lwme.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154775iDF145D10B08C1913/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lwme.png" alt="0683p000009Lwme.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TableRecordcnt3.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lx26.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146617iFB9EC29F284AC082/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lx26.png" alt="0683p000009Lx26.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 19:51:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/perform-select-count-from-table-oracle-in-talend/m-p/2298634#M71071</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-04-26T19:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: perform select count(*) from table (oracle ) in talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/perform-select-count-from-table-oracle-in-talend/m-p/2298635#M71072</link>
      <description>&lt;P&gt;Hi Yogesh,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can do this couple of ways depending on how the output is going to be used.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Add a tOracleInput with following SQL&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;SELECT&amp;nbsp;table_name&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;FROM&amp;nbsp;all_tables&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;WHERE owner='schema_name'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="arial,helvetica,sans-serif" color="#FF0000"&gt;ORDER BY&amp;nbsp;table_name&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2) Send this to tFlowToIterate and set a Variable&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;3) Add another tOracleInput with Dynamic SQL to get Rowcount.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;4) Store it for further use.&lt;/P&gt; 
&lt;P&gt;See the screenshot attached.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Oracle_Rowcounts.jpg" style="width: 997px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lx2L.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143155iD8F11FDEB2712142/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lx2L.jpg" alt="0683p000009Lx2L.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Or&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can always build an SQL Output with Union Statement that has all 180 Tables and just use that as a SQL for single tOracleInput downside to that is that it won't be dynamic anymore.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Hope this helps.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Datta.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 20:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/perform-select-count-from-table-oracle-in-talend/m-p/2298635#M71072</guid>
      <dc:creator>Shettydatta</dc:creator>
      <dc:date>2018-04-26T20:40:37Z</dc:date>
    </item>
  </channel>
</rss>

