<?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 can you compare integer columns from same table in Talend data integration components in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/How-can-you-compare-integer-columns-from-same-table-in-Talend/m-p/2267549#M2280</link>
    <description>&lt;P&gt;I didn't found any function where you can compare columns from same table.&lt;/P&gt; 
&lt;P&gt;Logic.&lt;/P&gt; 
&lt;P&gt;if (col A &amp;gt; col B and col A &amp;gt; col C then col A, if col B &amp;gt; col A and col&amp;nbsp;B &amp;gt; col C&amp;nbsp; then col B , col C).&lt;/P&gt; 
&lt;P&gt;how to achieve this in tmap?.&amp;nbsp;&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LMJEAA4"&gt;@act&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Hi! An expression in a tMap could generally do, but there are many different ways in Talend to achieve a comparison between fields of a same table, depending on the action you want to take.&lt;/P&gt; 
 &lt;P&gt;Can you describe what you need to do?&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Dec 2018 14:11:30 GMT</pubDate>
    <dc:creator>AAA999</dc:creator>
    <dc:date>2018-12-18T14:11:30Z</dc:date>
    <item>
      <title>How can you compare integer columns from same table in Talend data integration components</title>
      <link>https://community.qlik.com/t5/Data-Quality/How-can-you-compare-integer-columns-from-same-table-in-Talend/m-p/2267547#M2278</link>
      <description />
      <pubDate>Mon, 17 Dec 2018 22:04:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/How-can-you-compare-integer-columns-from-same-table-in-Talend/m-p/2267547#M2278</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2018-12-17T22:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can you compare integer columns from same table in Talend data integration components</title>
      <link>https://community.qlik.com/t5/Data-Quality/How-can-you-compare-integer-columns-from-same-table-in-Talend/m-p/2267548#M2279</link>
      <description>&lt;P&gt;Hi! An expression in a tMap could generally do, but there are many different ways in Talend to achieve a comparison between fields of a same table, depending on the action you want to take.&lt;/P&gt; 
&lt;P&gt;Can you describe what you need to do?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 08:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/How-can-you-compare-integer-columns-from-same-table-in-Talend/m-p/2267548#M2279</guid>
      <dc:creator>act</dc:creator>
      <dc:date>2018-12-18T08:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can you compare integer columns from same table in Talend data integration components</title>
      <link>https://community.qlik.com/t5/Data-Quality/How-can-you-compare-integer-columns-from-same-table-in-Talend/m-p/2267549#M2280</link>
      <description>&lt;P&gt;I didn't found any function where you can compare columns from same table.&lt;/P&gt; 
&lt;P&gt;Logic.&lt;/P&gt; 
&lt;P&gt;if (col A &amp;gt; col B and col A &amp;gt; col C then col A, if col B &amp;gt; col A and col&amp;nbsp;B &amp;gt; col C&amp;nbsp; then col B , col C).&lt;/P&gt; 
&lt;P&gt;how to achieve this in tmap?.&amp;nbsp;&lt;/P&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LMJEAA4"&gt;@act&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Hi! An expression in a tMap could generally do, but there are many different ways in Talend to achieve a comparison between fields of a same table, depending on the action you want to take.&lt;/P&gt; 
 &lt;P&gt;Can you describe what you need to do?&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 14:11:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/How-can-you-compare-integer-columns-from-same-table-in-Talend/m-p/2267549#M2280</guid>
      <dc:creator>AAA999</dc:creator>
      <dc:date>2018-12-18T14:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: How can you compare integer columns from same table in Talend data integration components</title>
      <link>https://community.qlik.com/t5/Data-Quality/How-can-you-compare-integer-columns-from-same-table-in-Talend/m-p/2267550#M2281</link>
      <description>&lt;P&gt;is it the the max value of col A, col B, col C you want?&lt;/P&gt;
&lt;P&gt;you can do this with the function Math.max if you fields are integer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if not&amp;nbsp; you can use the ternary operator&amp;nbsp; &lt;STRONG&gt;? :&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;exp1&lt;STRONG&gt; ?&lt;/STRONG&gt; exp 2&lt;STRONG&gt; :&lt;/STRONG&gt; exp 3&lt;/P&gt;
&lt;P&gt;will return exp 2&amp;nbsp; if expression exp 1 is true, exp 3 if not&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;in your case you would need two nested operations:&lt;/P&gt;
&lt;P&gt;col A &amp;gt;= col B&amp;nbsp; &amp;amp;&amp;amp; col A &amp;gt;= col C ? col A :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;col B &amp;gt;= col A &amp;amp;&amp;amp; col B &amp;gt;= col C ? col B : col C&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Dec 2018 21:01:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/How-can-you-compare-integer-columns-from-same-table-in-Talend/m-p/2267550#M2281</guid>
      <dc:creator>act</dc:creator>
      <dc:date>2018-12-18T21:01:53Z</dc:date>
    </item>
  </channel>
</rss>

