<?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 TMap: how to perform lookup with composite key and insert based on that complex key in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TMap-how-to-perform-lookup-with-composite-key-and-insert-based/m-p/2338216#M106477</link>
    <description>&lt;P&gt;I have a simple table and I want to insert if:&lt;/P&gt;&lt;P&gt;1) a certain id doesn't exist&lt;/P&gt;&lt;P&gt;2) if that id exists, but one+ of the 3 remaining fields are different&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this logic with tMap? I spent too much time around this and with many possibilities, but either I get all with "Y" flag for insert, or I just "Y" for insert when a new id is not there. Am I missing something? I can't find any example for this.  Note: No updated is needed, just insert when (c1,c2,c3,c4) is not on target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000EYm8MAAT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144140iF1325F9A272446B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000EYm8MAAT.png" alt="0695b00000EYm8MAAT.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 00:15:01 GMT</pubDate>
    <dc:creator>anna_t1</dc:creator>
    <dc:date>2024-11-16T00:15:01Z</dc:date>
    <item>
      <title>TMap: how to perform lookup with composite key and insert based on that complex key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMap-how-to-perform-lookup-with-composite-key-and-insert-based/m-p/2338216#M106477</link>
      <description>&lt;P&gt;I have a simple table and I want to insert if:&lt;/P&gt;&lt;P&gt;1) a certain id doesn't exist&lt;/P&gt;&lt;P&gt;2) if that id exists, but one+ of the 3 remaining fields are different&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this logic with tMap? I spent too much time around this and with many possibilities, but either I get all with "Y" flag for insert, or I just "Y" for insert when a new id is not there. Am I missing something? I can't find any example for this.  Note: No updated is needed, just insert when (c1,c2,c3,c4) is not on target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000EYm8MAAT.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144140iF1325F9A272446B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000EYm8MAAT.png" alt="0695b00000EYm8MAAT.png" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:15:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMap-how-to-perform-lookup-with-composite-key-and-insert-based/m-p/2338216#M106477</guid>
      <dc:creator>anna_t1</dc:creator>
      <dc:date>2024-11-16T00:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: TMap: how to perform lookup with composite key and insert based on that complex key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMap-how-to-perform-lookup-with-composite-key-and-insert-based/m-p/2338217#M106478</link>
      <description>&lt;P&gt;Hello anna_t,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suggest using an Inner Join on the input side on the left. On the output side, the first output panel is an Inner Join Reject, the second one is for catching those rows where the other fields differ.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 05:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMap-how-to-perform-lookup-with-composite-key-and-insert-based/m-p/2338217#M106478</guid>
      <dc:creator>ThWabi</dc:creator>
      <dc:date>2021-04-19T05:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: TMap: how to perform lookup with composite key and insert based on that complex key</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TMap-how-to-perform-lookup-with-composite-key-and-insert-based/m-p/2338218#M106479</link>
      <description>&lt;P&gt;Hi, you could achieve this in two time, first : inner join with the first id and get the result of the inner join, second : inner join with the three values and get the reject of the inner join.&lt;/P&gt;&lt;P&gt;Send me Love and Kudos&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 06:53:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TMap-how-to-perform-lookup-with-composite-key-and-insert-based/m-p/2338218#M106479</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-04-19T06:53:44Z</dc:date>
    </item>
  </channel>
</rss>

