<?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: Left outerjoin problem in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Left-outerjoin-problem-in-tMap/m-p/2197558#M1255</link>
    <description>&lt;P&gt;Sorry to disagree but the initial problem has nothing to do with the Match Model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume the following is true:&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;The first table is the main input of the tMap&lt;/LI&gt;
 &lt;LI&gt;The second table is the lookup in the tMap&lt;/LI&gt;
 &lt;LI&gt;You are matching on the "id" column&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I look at the data, I can find a match in your lookup for every record in your main input. Which record did you expect to have null values? There are two records with the same id in your main input (rows 1 and 3) and they both match with record 1 in your lookup. Therefore, the short answer is: there are no unmatched records in your example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if you switch "main" and "lookup" of the tMap, you will have one record unmatched (row 3 in your second table) and one record will have two matches (row 1). In this case, the Match Model will play a role:&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;"First match" will select the values from the first matched record (row 1 in the first table)&lt;/LI&gt;
 &lt;LI&gt;"Unique match" will select the values from the last matched record (row 3 in the first table)&lt;/LI&gt;
 &lt;LI&gt;"All matches" will duplicate the main record for each row in your lookup.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
    <pubDate>Sat, 17 Aug 2019 20:04:27 GMT</pubDate>
    <dc:creator>JR1</dc:creator>
    <dc:date>2019-08-17T20:04:27Z</dc:date>
    <item>
      <title>Left outerjoin problem in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Left-outerjoin-problem-in-tMap/m-p/2197555#M1252</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to join between 2 CVS files with contents as below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;id first_name last_name email engagement attr1&lt;BR /&gt;4903g34 Joe Johnson joe.johnson@spamhole.com 49 red&lt;BR /&gt;48982nf Mike Jackson mj@temp-mail.org 422 oil&lt;BR /&gt;4903g34 Sandrine Jervais sjervai@generator.email 4 linen&lt;BR /&gt;jh41922 Samantha Holland sam2382@mailinator .com 24 Grassy&lt;BR /&gt;&lt;BR /&gt;id sex tier lastcontact pets attr1 attr2&lt;BR /&gt;4903g34 0 platinum 1/24/2018 0 minivan +1 569-483-2388&lt;BR /&gt;48982nf 0 red 1/12/2018 1 car +1 555-555-1212&lt;BR /&gt;an2944a 1 gold 2/17/2018 1 pickuptruck +1 432-867-5309&lt;BR /&gt;jh41922 1 blue 11/4/2017 0 Car +1 716-873-9837&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have joined them with tMap but I am not getting correct result for left outer join. For unmatched rows it should be selecting null but instead it selects first matched row attributes. Please let me know if anyone can help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;email tier gender first_name last_name&lt;BR /&gt;joe.johnson@spamhole.com platinum m Joe Johnson&lt;BR /&gt;mj@temp-mail.org red m Mike Jackson&lt;BR /&gt;sjervai@generator.email platinum m Sandrine Jervais&lt;BR /&gt;sam2382@mailinator .com blue f Samantha Holland&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Left-outerjoin-problem-in-tMap/m-p/2197555#M1252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T04:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Left outerjoin problem in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Left-outerjoin-problem-in-tMap/m-p/2197556#M1253</link>
      <description>&lt;P&gt;Try using All joins in TMap.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 06:06:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Left-outerjoin-problem-in-tMap/m-p/2197556#M1253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-16T06:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Left outerjoin problem in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Left-outerjoin-problem-in-tMap/m-p/2197557#M1254</link>
      <description>&lt;P&gt;I am suspecting you might have selected "First Match" as your "Match model". You would need "All rows" instead.&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tMap-join1.JPG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M6xZ.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141706i63869E23432E21E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M6xZ.jpg" alt="0683p000009M6xZ.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Aug 2019 11:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Left-outerjoin-problem-in-tMap/m-p/2197557#M1254</guid>
      <dc:creator>iamabhishek</dc:creator>
      <dc:date>2019-08-16T11:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Left outerjoin problem in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Left-outerjoin-problem-in-tMap/m-p/2197558#M1255</link>
      <description>&lt;P&gt;Sorry to disagree but the initial problem has nothing to do with the Match Model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I assume the following is true:&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;The first table is the main input of the tMap&lt;/LI&gt;
 &lt;LI&gt;The second table is the lookup in the tMap&lt;/LI&gt;
 &lt;LI&gt;You are matching on the "id" column&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I look at the data, I can find a match in your lookup for every record in your main input. Which record did you expect to have null values? There are two records with the same id in your main input (rows 1 and 3) and they both match with record 1 in your lookup. Therefore, the short answer is: there are no unmatched records in your example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if you switch "main" and "lookup" of the tMap, you will have one record unmatched (row 3 in your second table) and one record will have two matches (row 1). In this case, the Match Model will play a role:&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;"First match" will select the values from the first matched record (row 1 in the first table)&lt;/LI&gt;
 &lt;LI&gt;"Unique match" will select the values from the last matched record (row 3 in the first table)&lt;/LI&gt;
 &lt;LI&gt;"All matches" will duplicate the main record for each row in your lookup.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Aug 2019 20:04:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Left-outerjoin-problem-in-tMap/m-p/2197558#M1255</guid>
      <dc:creator>JR1</dc:creator>
      <dc:date>2019-08-17T20:04:27Z</dc:date>
    </item>
    <item>
      <title>Re: Left outerjoin problem in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Left-outerjoin-problem-in-tMap/m-p/2197559#M1256</link>
      <description>&lt;P&gt;JR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your observation is correct. I validated the result and got correct output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Krishanu&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 14:09:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Left-outerjoin-problem-in-tMap/m-p/2197559#M1256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-20T14:09:40Z</dc:date>
    </item>
  </channel>
</rss>

