<?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 between two queries result in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Compare-between-two-queries-result/m-p/2241523#M28645</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPKlAAO"&gt;@khbou&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already explain the solution flow in my reply.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Mar 2019 14:51:19 GMT</pubDate>
    <dc:creator>akumar2301</dc:creator>
    <dc:date>2019-03-11T14:51:19Z</dc:date>
    <item>
      <title>Compare between two queries result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-between-two-queries-result/m-p/2241520#M28642</link>
      <description>&lt;P&gt;Hello community !&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My sql query is&lt;/P&gt; 
&lt;P&gt;SELECT FileName&lt;BR /&gt;FROM mvt_Ods&lt;BR /&gt;where Return_Mark!=' ' and PackingList_Type!='P'&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to use the result in order to :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If the number of lines in the result equals the number of lines of a specific FileName =&amp;gt; result : delete from table&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;to summarize, I want to see if the number of rows Return_Mark!=' ' and PackingList_Type!='P' for each FileName&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;is equal to the number of rows of each&amp;nbsp;FileName and if it's true i want to delete rows for this FileName&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 11:55:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-between-two-queries-result/m-p/2241520#M28642</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-11T11:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Compare between two queries result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-between-two-queries-result/m-p/2241521#M28643</link>
      <description>&lt;P&gt;So you want&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Step 1) you have another specifc&amp;nbsp; file , you want to get record count&amp;nbsp;using &lt;STRONG&gt;tFileRowCount&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Step 2) Query to be executed in tOracleInput&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;SELECT FileName&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FROM mvt_Ods&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where Return_Mark!=' ' and PackingList_Type!='P'&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Above will return one/more filename ,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;---- you would like to &lt;STRONG&gt;Iterate&lt;/STRONG&gt; through each file name using&amp;nbsp; &lt;STRONG&gt;tFlowtoIterator&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;----------Then this file might exist in your server , you want to count number of line in this file using &lt;STRONG&gt;tFileRowCount&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;---------------&lt;STRONG&gt;using Run&lt;/STRONG&gt;&lt;SPAN&gt;&lt;STRONG&gt;&amp;nbsp;if&lt;/STRONG&gt;&amp;nbsp; check if rowcount of&amp;nbsp; {file of SQL query} =&amp;nbsp;rowcount of specific file(Step1)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; then you would like to delete record in table using &lt;STRONG&gt;tOracleRow&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Delete mvt_Ods&amp;nbsp;FROM&amp;nbsp;where Return_Mark!=' ' and PackingList_Type!='P' and fileName = {file of SQL query};&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;is my understanding correct ?&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 12:33:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-between-two-queries-result/m-p/2241521#M28643</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-11T12:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: Compare between two queries result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-between-two-queries-result/m-p/2241522#M28644</link>
      <description>&lt;P&gt;Yes&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 13:47:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-between-two-queries-result/m-p/2241522#M28644</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-11T13:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Compare between two queries result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-between-two-queries-result/m-p/2241523#M28645</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPKlAAO"&gt;@khbou&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I already explain the solution flow in my reply.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 14:51:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-between-two-queries-result/m-p/2241523#M28645</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-11T14:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Compare between two queries result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Compare-between-two-queries-result/m-p/2241524#M28646</link>
      <description>&lt;P&gt;I don't have a file,&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the same database&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 14:54:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Compare-between-two-queries-result/m-p/2241524#M28646</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-11T14:54:54Z</dc:date>
    </item>
  </channel>
</rss>

