<?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: tMap : complexe inner join and complexe left join in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353726#M119855</link>
    <description>&lt;P&gt;For the out1 schema, we set JOINED to true.&lt;/P&gt;&lt;P&gt;For the join table, JOINED to false.&lt;/P&gt;&lt;P&gt;For the join table, we set catch lookup inner reject to true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, we sort the rows on JOINED value : to get joined rows BEFORE null ones.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvRElAAM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130630iD632EFCFF0FE6FBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvRElAAM.png" alt="0695b00000lvRElAAM.png" /&gt;&lt;/span&gt;TJAVAFLEX with its schema and code : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvRHQAA2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149824i163957C56CB01049/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvRHQAA2.png" alt="0695b00000lvRHQAA2.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the output we add a column called VALIDE (for instance).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Start code, we create a HashMap which records if a AID is already encountered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Main code : we consider that the line is not valide.&lt;/P&gt;&lt;P&gt;if the row is joined, we remember that this AID is encountered, and the line becomes valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the row is not joined, we check if this AID has already been encountered. If not, the row is valid =&amp;gt; we keep it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then we filter the row : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvRMBAA2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155989iD8A52EFEABBF754B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvRMBAA2.png" alt="0695b00000lvRMBAA2.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then we keep unique rows only : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvRMuAAM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152196i96C86B60D427BB09/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvRMuAAM.png" alt="0695b00000lvRMuAAM.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we run the job, we get what I wanted : a left join output based on our complexe join condition, which is not a simple equality test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvRNEAA2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151010i3EA1B4F64043CE60/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvRNEAA2.png" alt="0695b00000lvRNEAA2.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will help !&lt;/P&gt;&lt;P&gt;Thank you again @Anselmo Peixoto​&amp;nbsp;!&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jul 2023 16:55:16 GMT</pubDate>
    <dc:creator>Alpha549</dc:creator>
    <dc:date>2023-07-21T16:55:16Z</dc:date>
    <item>
      <title>tMap : complexe inner join and complexe left join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353719#M119848</link>
      <description>&lt;P&gt;Hello everyone, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the majority of cases, I believe that when we use a tMap to join rows, join is made with equality.&lt;/P&gt;&lt;P&gt;However, for some joins, the condition can me more complexe, for instance : &lt;A href="https://row1.id" alt="https://row1.id" target="_blank"&gt;row1.id&lt;/A&gt; &amp;gt;= &lt;A href="https://row2.id" alt="https://row2.id" target="_blank"&gt;row2.id&lt;/A&gt; &amp;amp;&amp;amp; &lt;A href="https://row1.id" alt="https://row1.id" target="_blank"&gt;row1.id&lt;/A&gt; &amp;lt;= &lt;A href="https://row2.id" alt="https://row2.id" target="_blank"&gt;row2.id&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HERE ARE 2 CASES : A COMPLEXE INNER JOIN, AND A COMPLEXE LEFT JOIN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;COMPLEXE INNER JOIN&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000kYPTFAA4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155429i4F2B48555FBFA6D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000kYPTFAA4.png" alt="0695b00000kYPTFAA4.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000kYPTPAA4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130321i0381ACA7F2227F46/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000kYPTPAA4.png" alt="0695b00000kYPTPAA4.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000kYPTZAA4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135831i496ECF48671C09F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000kYPTZAA4.png" alt="0695b00000kYPTZAA4.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tMap is configured on Join Model : Inner Join.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output, as expected : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000kYPTeAAO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137719i7A3B9B69C1D2CB80/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000kYPTeAAO.png" alt="0695b00000kYPTeAAO.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;I TRIED TO GET THE SAME RESULT, BUT AS LEFT JOINT : I SHOULD GET A THIRD ROW 8, NULL, NULL, NULL&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I changed the tMap join model from Inner Join to Left Outer Join.&lt;/P&gt;&lt;P&gt;The result is the same. I understand that because as I use a filter here, other rows are removed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is how I proceeded : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000kYPTyAAO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133550i6684BEC680BFC3AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000kYPTyAAO.png" alt="0695b00000kYPTyAAO.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000kYPU3AAO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141506i8245C9271C8D79EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000kYPU3AAO.png" alt="0695b00000kYPU3AAO.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FIRST TMAP :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000kYPU8AAO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140438iA2B570EE09A43F96/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000kYPU8AAO.png" alt="0695b00000kYPU8AAO.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FILTERED : COPYOF...1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000kYPUDAA4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156272i4356F2C702D8C353/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000kYPUDAA4.png" alt="0695b00000kYPUDAA4.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other file is COPYOF...2 AFTER A TUNIQUEROW&lt;/P&gt;&lt;P&gt;I USE CSV FILES TO STORE TEMPORARY DATA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000kYPUNAA4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150510i51210C30485648DE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000kYPUNAA4.png" alt="0695b00000kYPUNAA4.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THEN, I DETECT THE ROWS OF COPYOF...2 (PREVIOUSLY INSERTED IN A CSV FILE) WHICH ARE NOT IN COPYOF...1 (PREVIOUSLY INSERTED IN A CSV FILE) : INNER JOIN AND I GET THE REJECTED&lt;/P&gt;&lt;P&gt;AND SEND THEM IN A THIRD CSV FILE, HERE TO STORE TEMPORARY DATA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000kYPUrAAO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145952i1BC799C6588EE48D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000kYPUrAAO.png" alt="0695b00000kYPUrAAO.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;As I can't include more that 10 image, I continue in the first comment.&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353719#M119848</guid>
      <dc:creator>Alpha549</dc:creator>
      <dc:date>2024-11-15T21:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: tMap : complexe inner join and complexe left join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353720#M119849</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000kYPVGAA4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133176i155A7E3C08C7DB40/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000kYPVGAA4.png" alt="0695b00000kYPVGAA4.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;THIRD SUB-JOB, I CONCATENATE THE TWO FILES, AND I GET WHAT I WISHED : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000kYPVQAA4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142622i81C955E4630F4140/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000kYPVQAA4.png" alt="0695b00000kYPVQAA4.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you give me some advice on how to proceed, and if there is an easier way to achieve a "complex left join"?&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2023 20:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353720#M119849</guid>
      <dc:creator>Alpha549</dc:creator>
      <dc:date>2023-07-15T20:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: tMap : complexe inner join and complexe left join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353721#M119850</link>
      <description>&lt;P&gt;Hi @Alpha549 Alpha549​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What if you try the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Keep the lookup as inner join just like in your example;&lt;/LI&gt;&lt;LI&gt;On the output section, click on the "add output table" icon with a plus sign;&lt;/LI&gt;&lt;LI&gt;Select "Create join table from" and select "out2" as its source. This will create another mapping based on out2 schema;&lt;/LI&gt;&lt;LI&gt;On this new output mapping, click on the "tMap settings" icon with a wrench tool;&lt;/LI&gt;&lt;LI&gt;Set the "Catch lookup inner join reject" option to true;&lt;/LI&gt;&lt;LI&gt;Map the output columns just like you did on the first schema;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These steps allows you to create "virtual" schemas that are joined to a single output row, so you'll need to connect only "out2" to an output component (in fact, you'll notice there will be only "out2" row when you try to connect tMap to another component).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps you achieve the complex left join you need.&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>Sun, 16 Jul 2023 21:35:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353721#M119850</guid>
      <dc:creator>anselmopeixoto</dc:creator>
      <dc:date>2023-07-16T21:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: tMap : complexe inner join and complexe left join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353722#M119851</link>
      <description>&lt;P&gt;Hello @Anselmo Peixoto​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you a lot for your answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you show some screenshots from step 3 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jul 2023 03:08:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353722#M119851</guid>
      <dc:creator>Alpha549</dc:creator>
      <dc:date>2023-07-17T03:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: tMap : complexe inner join and complexe left join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353723#M119852</link>
      <description>&lt;P&gt;@Anselmo Peixoto​&amp;nbsp; ?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 17:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353723#M119852</guid>
      <dc:creator>Alpha549</dc:creator>
      <dc:date>2023-07-18T17:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: tMap : complexe inner join and complexe left join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353724#M119853</link>
      <description>&lt;P&gt;Hi @Alpha549 Alpha549​&amp;nbsp;, here it goes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Add output table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lv9BKAAY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128178i44A188E9249EB793/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lv9BKAAY.png" alt="0695b00000lv9BKAAY.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create join table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lv9BAAAY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157121i83C47545BDEA85B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lv9BAAAY.png" alt="0695b00000lv9BAAAY.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Click on tMap settings for the new output you just created:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lv9B0AAI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136965iAE1DE56A8417BCC7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lv9B0AAI.png" alt="0695b00000lv9B0AAI.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enable Catch lookup inner join reject:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lv9AHAAY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153406iAC1F68A1A2C1B8DF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lv9AHAAY.png" alt="0695b00000lv9AHAAY.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Connect tMap original output schema to the output component:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lv9BUAAY.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137961i876DD692AF5954D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lv9BUAAY.png" alt="0695b00000lv9BUAAY.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 01:13:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353724#M119853</guid>
      <dc:creator>anselmopeixoto</dc:creator>
      <dc:date>2023-07-20T01:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: tMap : complexe inner join and complexe left join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353725#M119854</link>
      <description>&lt;P&gt;Hello @Anselmo Peixoto​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you a lot. I didn't know this feature.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Beyond the tips you gave me,&amp;nbsp;I found a solution to make a left join with a complexe join condition. I share with the community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here we go :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The final job :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvR21AAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138021i343AF57520C65732/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvR21AAE.png" alt="0695b00000lvR21AAE.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvR39AAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150235iAA1B89232692B566/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvR39AAE.png" alt="0695b00000lvR39AAE.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;﻿I selected commons just to remove the alert. Then, in advanced settings : &lt;/P&gt;&lt;P&gt;import java.util.HashMap;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvR4RAAU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136023i6AEAC61A921FAE29/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvR4RAAU.png" alt="0695b00000lvR4RAAU.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvR5AAAU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128610i5D0590DCB9D58511/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvR5AAAU.png" alt="0695b00000lvR5AAAU.png" /&gt;&lt;/span&gt;TMAP : &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvR5yAAE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139862iB1B61BE7A3687975/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvR5yAAE.png" alt="0695b00000lvR5yAAE.png" /&gt;&lt;/span&gt;Nothing in the expression field, as we use the lookup table filter for our complexe join (not a simple equality test).&lt;/P&gt;&lt;P&gt;All rows, INNER JOIN (even if we want to do a left join, it's always inner in the case of complexe join condition)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We create the first output.&lt;/P&gt;&lt;P&gt;Then, the tips you gave me @Anselmo Peixoto​&amp;nbsp;: we create a second output using the + icone on the upper right part, and we select join.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create a join table : &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvRB3AAM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148173iC25EED138BAC3508/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvRB3AAM.png" alt="0695b00000lvRB3AAM.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As seen before, for the join table, we only set the value of AID. Nothing more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We create a new column called JOINED.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(CONTINUE IN THE NEXT COMMENT)&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 13:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353725#M119854</guid>
      <dc:creator>Alpha549</dc:creator>
      <dc:date>2023-07-20T13:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: tMap : complexe inner join and complexe left join</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353726#M119855</link>
      <description>&lt;P&gt;For the out1 schema, we set JOINED to true.&lt;/P&gt;&lt;P&gt;For the join table, JOINED to false.&lt;/P&gt;&lt;P&gt;For the join table, we set catch lookup inner reject to true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, we sort the rows on JOINED value : to get joined rows BEFORE null ones.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvRElAAM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130630iD632EFCFF0FE6FBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvRElAAM.png" alt="0695b00000lvRElAAM.png" /&gt;&lt;/span&gt;TJAVAFLEX with its schema and code : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvRHQAA2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149824i163957C56CB01049/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvRHQAA2.png" alt="0695b00000lvRHQAA2.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the output we add a column called VALIDE (for instance).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Start code, we create a HashMap which records if a AID is already encountered.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Main code : we consider that the line is not valide.&lt;/P&gt;&lt;P&gt;if the row is joined, we remember that this AID is encountered, and the line becomes valid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the row is not joined, we check if this AID has already been encountered. If not, the row is valid =&amp;gt; we keep it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then we filter the row : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvRMBAA2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155989iD8A52EFEABBF754B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvRMBAA2.png" alt="0695b00000lvRMBAA2.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then we keep unique rows only : &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvRMuAAM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152196i96C86B60D427BB09/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvRMuAAM.png" alt="0695b00000lvRMuAAM.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we run the job, we get what I wanted : a left join output based on our complexe join condition, which is not a simple equality test.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000lvRNEAA2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151010i3EA1B4F64043CE60/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000lvRNEAA2.png" alt="0695b00000lvRNEAA2.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this will help !&lt;/P&gt;&lt;P&gt;Thank you again @Anselmo Peixoto​&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2023 16:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-complexe-inner-join-and-complexe-left-join/m-p/2353726#M119855</guid>
      <dc:creator>Alpha549</dc:creator>
      <dc:date>2023-07-21T16:55:16Z</dc:date>
    </item>
  </channel>
</rss>

