<?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: Insert new record if not exist in database in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Insert-new-record-if-not-exist-in-database/m-p/2305110#M76812</link>
    <description>Thank you so much</description>
    <pubDate>Thu, 26 Oct 2017 09:39:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-26T09:39:51Z</dc:date>
    <item>
      <title>Insert new record if not exist in database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-new-record-if-not-exist-in-database/m-p/2305106#M76808</link>
      <description>&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i need help i want to insert some data in table but before insert i want to check if the column name has the same record or not, and if the record exist don't insert it and if not exist insert new record&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thnak you&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 11:35:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-new-record-if-not-exist-in-database/m-p/2305106#M76808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-25T11:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Insert new record if not exist in database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-new-record-if-not-exist-in-database/m-p/2305107#M76809</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution #1 : read PosFinal dataas a lookup for a tMap with inner join on Name field. Get rejected records as candidates for insert.&lt;/P&gt;&lt;P&gt;Solution #2 : place an unique index on your PosFinal table (in the database) and try to insert all the records from PosDynamic; existing records will be automagically rejected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 15:36:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-new-record-if-not-exist-in-database/m-p/2305107#M76809</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-10-25T15:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: Insert new record if not exist in database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-new-record-if-not-exist-in-database/m-p/2305108#M76810</link>
      <description>&lt;P&gt;Can please make exemple for me, i'm new in talend thanks you&lt;/P&gt;</description>
      <pubDate>Wed, 25 Oct 2017 16:26:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-new-record-if-not-exist-in-database/m-p/2305108#M76810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-25T16:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Insert new record if not exist in database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-new-record-if-not-exist-in-database/m-p/2305109#M76811</link>
      <description>&lt;P&gt;Here is an example for solution #1.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 378px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrKK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142682i1BCE8F31F821AA70/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrKK.png" alt="0683p000009LrKK.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;POS Dynamic contains 2 records (1 new + 1 existing into POS Final).&lt;/P&gt; 
&lt;P&gt;Here is the tMap:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LrZ1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146186i19D3B620EE22A319/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LrZ1.png" alt="0683p000009LrZ1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Make attention to the Join Model for the lookup, it must be set to "Inner join" (2nd yellow line on left side) and to the Catch lookup inner join reject parameter which must be set to "true" 'yellow line on right side).&lt;/P&gt; 
&lt;P&gt;As you can see, the result contains only 1 records, which will go to the destination (tLogRow for the example):&lt;/P&gt; 
&lt;PRE&gt;Starting job test at 17:51 25/10/2017.

[statistics] connecting to socket on port 3505
[statistics] connected
&lt;FONT color="#FF0000"&gt;value 4|value 5|value 6&lt;/FONT&gt;
[statistics] disconnected
Job test ended at 17:51 25/10/2017. [exit code=0]&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Oct 2017 16:58:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-new-record-if-not-exist-in-database/m-p/2305109#M76811</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-10-25T16:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Insert new record if not exist in database</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Insert-new-record-if-not-exist-in-database/m-p/2305110#M76812</link>
      <description>Thank you so much</description>
      <pubDate>Thu, 26 Oct 2017 09:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Insert-new-record-if-not-exist-in-database/m-p/2305110#M76812</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-26T09:39:51Z</dc:date>
    </item>
  </channel>
</rss>

