<?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: [resolved] How to insert data if not present in table ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265525#M45040</link>
    <description>Yes. I was trying to do the same. But somehow it's not working for my case. 
&lt;BR /&gt;I uploaded my screen shot to make it clear. 
&lt;BR /&gt;My concern is to: 
&lt;BR /&gt;1) row7 and row8 are mapped together to get the records by inner join. ---&amp;gt; this is to update the existing records in the output table. --&amp;gt; HERE UPDATE IS WORKING. 
&lt;BR /&gt;2) I want to get the records from row7 which are not satisfied as per my expression editor ---&amp;gt; this is to insert the records in to output table which were not present in the row8. ---&amp;gt; NOT GETTING THE RECORDS FROM ROW7 WHICH ARE NOT PRESENT IN ROW8. 
&lt;BR /&gt;Can you give me some idea whether I am doing it in right way or not. 
&lt;BR /&gt;Note: ROW7 represents TABLEA 
&lt;BR /&gt; ROW8 represents TABLEB 
&lt;BR /&gt; insert represents TABLEB 
&lt;BR /&gt; insert represents TABLEB</description>
    <pubDate>Wed, 29 Sep 2010 08:55:44 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-09-29T08:55:44Z</dc:date>
    <item>
      <title>[resolved] How to insert data if not present in table ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265522#M45037</link>
      <description>HI,&lt;BR /&gt; Can some tell me to insert a set of records if it is not present in the db table.&lt;BR /&gt;Example:&lt;BR /&gt;TableA&lt;BR /&gt;=======&lt;BR /&gt;Column_Key   Column_value&lt;BR /&gt;--------------     ---------------&lt;BR /&gt;227                   99400 &lt;BR /&gt;226                   88400&lt;BR /&gt;225                   83000&lt;BR /&gt;&lt;BR /&gt;TableB&lt;BR /&gt;=======&lt;BR /&gt;Column_Key   Column_value&lt;BR /&gt;--------------     ---------------&lt;BR /&gt;227                   99400 &lt;BR /&gt;&lt;BR /&gt;Here in the above example I need to add 226,225 from TableA to TableB. If not exists in TableB.&lt;BR /&gt;Pls help me at this stopper..</description>
      <pubDate>Sat, 16 Nov 2024 13:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265522#M45037</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to insert data if not present in table ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265523#M45038</link>
      <description>Take two DB inputs - TableA and TableB
&lt;BR /&gt;Create a tMap and make TableA the main input, TableB the lookup
&lt;BR /&gt;In the Map create a new column lookupvalue that takes the value of the Column_value column from the Lookup schema (this will be null for any rows that do not match)
&lt;BR /&gt;run the stream througha tFilterRow to remove any rows with this lookupvalue Equals null
&lt;BR /&gt;run that output through a tMap to remove the lookupvalue from the output schema
&lt;BR /&gt;run the result stream into TableB as a DB output with the Action of Data set to Insert (the default I think)</description>
      <pubDate>Wed, 29 Sep 2010 01:00:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265523#M45038</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-29T01:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to insert data if not present in table ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265524#M45039</link>
      <description>Well If a primary key is set up on your table you dont even need to check if the record exists before, just try the insert (or maybe update or insert mode) and if i fails you ll be able to get the lines that are already in the table by dragging the reject flow of the tMySqlOutput component.</description>
      <pubDate>Wed, 29 Sep 2010 07:50:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265524#M45039</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-29T07:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to insert data if not present in table ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265525#M45040</link>
      <description>Yes. I was trying to do the same. But somehow it's not working for my case. 
&lt;BR /&gt;I uploaded my screen shot to make it clear. 
&lt;BR /&gt;My concern is to: 
&lt;BR /&gt;1) row7 and row8 are mapped together to get the records by inner join. ---&amp;gt; this is to update the existing records in the output table. --&amp;gt; HERE UPDATE IS WORKING. 
&lt;BR /&gt;2) I want to get the records from row7 which are not satisfied as per my expression editor ---&amp;gt; this is to insert the records in to output table which were not present in the row8. ---&amp;gt; NOT GETTING THE RECORDS FROM ROW7 WHICH ARE NOT PRESENT IN ROW8. 
&lt;BR /&gt;Can you give me some idea whether I am doing it in right way or not. 
&lt;BR /&gt;Note: ROW7 represents TABLEA 
&lt;BR /&gt; ROW8 represents TABLEB 
&lt;BR /&gt; insert represents TABLEB 
&lt;BR /&gt; insert represents TABLEB</description>
      <pubDate>Wed, 29 Sep 2010 08:55:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265525#M45040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-29T08:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to insert data if not present in table ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265526#M45041</link>
      <description>Hmm I think that your filtering condition is useless since you're doing a "inner join" in your tMap you can get the rows that are in tableA but not in B by activating the rejects in your "insert" output. Just push the purple arrow button and remove your condition.</description>
      <pubDate>Wed, 29 Sep 2010 12:45:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265526#M45041</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-29T12:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to insert data if not present in table ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265527#M45042</link>
      <description>Got it. It works as per your comments. Thx.</description>
      <pubDate>Wed, 29 Sep 2010 20:44:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265527#M45042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-09-29T20:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to insert data if not present in table ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265528#M45043</link>
      <description>Sorry to necro this, but I'm interested in the same type of thing. However, I need this to be populated as the job runs.&lt;BR /&gt;What I mean is if we have:&lt;BR /&gt;TableA&lt;BR /&gt;=======&lt;BR /&gt;Column_Key   Column_value        &lt;BR /&gt;--------------     ---------------    &lt;BR /&gt;227                   "Long String Key"&lt;BR /&gt;226                   "Long String Key"&lt;BR /&gt;225                   "Long String Key"&lt;BR /&gt;TableB&lt;BR /&gt;=======&lt;BR /&gt;String_Id        String_value&lt;BR /&gt;------------    ------------------&lt;BR /&gt;1                    "Other String key"&lt;BR /&gt;&lt;BR /&gt;While processing the lookup (I.E. replacing column_value with the string_id from tableB), it should see that Long String Key doesn't exist and insert it into TableB (The lookup table), but then we want subsequent lookups to see that we've now created an entry and also have the string_id 2 assigned to it.&lt;BR /&gt;Make sense? MS BI has their lookups structured kind of like that, I just don't know how to replicate the behavior in Talend. Thoughts? Thanks for the help!</description>
      <pubDate>Mon, 07 Feb 2011 22:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265528#M45043</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-02-07T22:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to insert data if not present in table ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265529#M45044</link>
      <description>Hi Everybody,&lt;BR /&gt;I have a solution, which use only the tMap (actually between to schema)&lt;BR /&gt;The purpose here is to insert all products which are not existing in the destination table (based on the uuid).&lt;BR /&gt;Source (date.sale)&lt;BR /&gt;as_sale_id&lt;BR /&gt;as_product_uuid&lt;BR /&gt;...&lt;BR /&gt;Dest (dw.dim_product)&lt;BR /&gt;product_id (key)&lt;BR /&gt;product_uuid&lt;BR /&gt;The trick is to simulate (We need to "simulate" by using a tMap, because of the db are on two different RDMS):&lt;BR /&gt;&lt;PRE&gt;select distinct(product_uuid)&lt;BR /&gt;from data.sale &lt;BR /&gt;left join dw.dim_product&lt;BR /&gt;  on data.sale.product_uuid = dw.dim_product.product_uuid&lt;BR /&gt;where  dw.dim_product.product_uuid is null&lt;/PRE&gt;&lt;BR /&gt;To success, you just need to put dw.dim_product.product_id==0 as filter for the output (row2.product_id on the screen shoot)&lt;BR /&gt;Cheers</description>
      <pubDate>Tue, 09 Jul 2013 19:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265529#M45044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-09T19:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to insert data if not present in table ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265530#M45045</link>
      <description>Hi,&lt;BR /&gt;I Have Created a Job and Job Has Been Successfully Executed.Now I want Total Log Report of My Job to be Sent to My Mail ID.Please Help me Regarding with this.How Can Connect Components.Thank You.</description>
      <pubDate>Wed, 04 Mar 2015 07:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-insert-data-if-not-present-in-table/m-p/2265530#M45045</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-04T07:20:05Z</dc:date>
    </item>
  </channel>
</rss>

