<?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 compare the two columns in a same file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-compare-the-two-columns-in-a-same-file/m-p/2284532#M58206</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;It worked for my requirement , thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 08 Oct 2019 16:05:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-10-08T16:05:39Z</dc:date>
    <item>
      <title>How to compare the two columns in a same file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-compare-the-two-columns-in-a-same-file/m-p/2284530#M58204</link>
      <description>&lt;P&gt;Hello All&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a scenario, that am getting a file with multiple columns, with number of rows, out of that two columns data i need to compare, that two columns data must be exactly equal for every row, how to achieve that&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;example for good data&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;col1&lt;/TD&gt; 
   &lt;TD&gt;col2&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;Open&lt;/TD&gt; 
   &lt;TD&gt;Open&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;Open&lt;/TD&gt; 
   &lt;TD&gt;Open&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;Open&lt;/TD&gt; 
   &lt;TD&gt;Open&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;if i find That above data file is exactly valid&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;but if the data is in below format file is invalid , even if one row data not matched, i need to reject entire file&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;col1&lt;/TD&gt; 
   &lt;TD&gt;col2&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;Open&lt;/TD&gt; 
   &lt;TD&gt;Open&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;Open&lt;/TD&gt; 
   &lt;TD&gt;Open&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;Open&lt;/TD&gt; 
   &lt;TD&gt;not open&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Can anybody suggest good method to approach this&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks In Advance&lt;/P&gt; 
&lt;P&gt;Manish&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:26:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-compare-the-two-columns-in-a-same-file/m-p/2284530#M58204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the two columns in a same file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-compare-the-two-columns-in-a-same-file/m-p/2284531#M58205</link>
      <description>Using a tMap add the following expression to the output filter:
&lt;BR /&gt;!(""+row1.col1).equals(row1.col2)
&lt;BR /&gt;This way, invalid records will go to the output flow. Then check how records have been rejected to decide what to do with the file.</description>
      <pubDate>Tue, 08 Oct 2019 15:10:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-compare-the-two-columns-in-a-same-file/m-p/2284531#M58205</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-08T15:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to compare the two columns in a same file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-compare-the-two-columns-in-a-same-file/m-p/2284532#M58206</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;It worked for my requirement , thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2019 16:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-compare-the-two-columns-in-a-same-file/m-p/2284532#M58206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-10-08T16:05:39Z</dc:date>
    </item>
  </channel>
</rss>

