<?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 Question on tmap to use Or condition in join in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297380#M69962</link>
    <description>Hi,
&lt;BR /&gt;I would like to use or condition tmap while joining with a lookup table. Can anyone share how that can be done? Below, i have given the table structure and join query. I want to achieve join query using tmap. How can i do that?
&lt;BR /&gt;Table A (Main Table)
&lt;BR /&gt;----------
&lt;BR /&gt;Name,
&lt;BR /&gt;Id_1,
&lt;BR /&gt;Id_2
&lt;BR /&gt;Table B (Lookup Table)
&lt;BR /&gt;------------
&lt;BR /&gt;Table B (Lookup)
&lt;BR /&gt;------------------
&lt;BR /&gt;Id,
&lt;BR /&gt;Address,
&lt;BR /&gt;Region
&lt;BR /&gt;SELECT A.NAME, B.ADDRESS, B.REGION
&lt;BR /&gt;FROM A, B
&lt;BR /&gt;WHERE A.ID_1 = B.ID OR A.ID_2 = B.ID</description>
    <pubDate>Mon, 22 Apr 2013 19:19:33 GMT</pubDate>
    <dc:creator>_AnonymousUser</dc:creator>
    <dc:date>2013-04-22T19:19:33Z</dc:date>
    <item>
      <title>Question on tmap to use Or condition in join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297380#M69962</link>
      <description>Hi,
&lt;BR /&gt;I would like to use or condition tmap while joining with a lookup table. Can anyone share how that can be done? Below, i have given the table structure and join query. I want to achieve join query using tmap. How can i do that?
&lt;BR /&gt;Table A (Main Table)
&lt;BR /&gt;----------
&lt;BR /&gt;Name,
&lt;BR /&gt;Id_1,
&lt;BR /&gt;Id_2
&lt;BR /&gt;Table B (Lookup Table)
&lt;BR /&gt;------------
&lt;BR /&gt;Table B (Lookup)
&lt;BR /&gt;------------------
&lt;BR /&gt;Id,
&lt;BR /&gt;Address,
&lt;BR /&gt;Region
&lt;BR /&gt;SELECT A.NAME, B.ADDRESS, B.REGION
&lt;BR /&gt;FROM A, B
&lt;BR /&gt;WHERE A.ID_1 = B.ID OR A.ID_2 = B.ID</description>
      <pubDate>Mon, 22 Apr 2013 19:19:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297380#M69962</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-04-22T19:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Question on tmap to use Or condition in join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297381#M69963</link>
      <description>The best way, I think, is to have two left-join lookups from Table B with an appropriate condition on your output e.g. Lookup1.Address != null || Lookup2.Address != null</description>
      <pubDate>Tue, 23 Apr 2013 00:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297381#M69963</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2013-04-23T00:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Question on tmap to use Or condition in join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297382#M69964</link>
      <description>Hi sree, 
&lt;BR /&gt;To make you clear, I have designed a demo job with troubleshoots. 
&lt;BR /&gt;Here are two files 
&lt;BR /&gt;1(main) 
&lt;BR /&gt;id;id1 
&lt;BR /&gt;12;24 
&lt;BR /&gt;13;26 
&lt;BR /&gt;15;30 
&lt;BR /&gt;2(lookUP) 
&lt;BR /&gt;id;name;address;region 
&lt;BR /&gt;12;dan;uk;LD 
&lt;BR /&gt;26;petter;uk;SF 
&lt;BR /&gt;15;merry;US;NY 
&lt;BR /&gt;24;shong;china;hn 
&lt;BR /&gt;60;sabrina;china;bj 
&lt;BR /&gt;The work flow is : tFileInputDelimited--&amp;gt;tMap--&amp;gt;tLogrow 
&lt;BR /&gt;Please see the screenshots for details 
&lt;BR /&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MENH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138493i340A7004F8ECB6E8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MENH.png" alt="0683p000009MENH.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009ME4J.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145693i044B260A280642E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009ME4J.png" alt="0683p000009ME4J.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 23 Apr 2013 03:26:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297382#M69964</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-23T03:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question on tmap to use Or condition in join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297383#M69965</link>
      <description>Thanks for the replies. I will try and let you know if there are more questions.</description>
      <pubDate>Tue, 23 Apr 2013 18:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297383#M69965</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-04-23T18:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Question on tmap to use Or condition in join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297384#M69966</link>
      <description>&lt;DIV class="lia-message-author-with-avatar"&gt;
  &amp;nbsp; 
&lt;/DIV&gt; 
&lt;DIV class="lia-message-author-with-avatar"&gt; 
 &lt;SPAN class="UserName lia-user-name lia-user-rank-Moderator lia-component-message-view-widget-author-username"&gt;&lt;SPAN&gt;What if&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt; 
&lt;/DIV&gt; 
&lt;DIV class="lia-message-author-with-avatar"&gt; 
 &lt;SPAN class="UserName lia-user-name lia-user-rank-Moderator lia-component-message-view-widget-author-username"&gt;&lt;SPAN&gt;&amp;nbsp;table 1 consis of ID and Name and Table two Consist of ID1, ID2 and Table 1 is main in tmap&amp;nbsp;and Table 2 is Lookup&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; 
&lt;/DIV&gt; 
&lt;DIV class="lia-message-author-with-avatar"&gt; 
 &lt;SPAN class="UserName lia-user-name lia-user-rank-Moderator lia-component-message-view-widget-author-username"&gt;&lt;SPAN&gt;. how to sort this out??&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000004XsaeAAC"&gt;@xdshi&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt; 
&lt;/DIV&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 11:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297384#M69966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-15T11:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Question on tmap to use Or condition in join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297385#M69967</link>
      <description>Try this way.&lt;BR /&gt;&lt;BR /&gt;row1.id==row2.id1 || row1.id==row2.id2</description>
      <pubDate>Fri, 15 Jun 2018 13:28:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297385#M69967</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-06-15T13:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Question on tmap to use Or condition in join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297386#M69968</link>
      <description>&lt;P&gt;Thank You So much&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It works very well.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jun 2018 13:37:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297386#M69968</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-15T13:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: Question on tmap to use Or condition in join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297387#M69969</link>
      <description>If any column having null data then will get nullpointer exception right?</description>
      <pubDate>Tue, 14 May 2019 18:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297387#M69969</guid>
      <dc:creator>Prasanna3</dc:creator>
      <dc:date>2019-05-14T18:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Question on tmap to use Or condition in join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297388#M69970</link>
      <description>Does this example still works ? I tried the same job, with same data and components. I can read the data in input, from the tFileInputDelimited, but my output is empty ; it looks like the join / condition does not work. 
&lt;BR /&gt; 
&lt;BR /&gt;Any ideas ? 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 29 Nov 2019 16:14:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Question-on-tmap-to-use-Or-condition-in-join/m-p/2297388#M69970</guid>
      <dc:creator>jeoste</dc:creator>
      <dc:date>2019-11-29T16:14:56Z</dc:date>
    </item>
  </channel>
</rss>

