<?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 if not exist for postgreSql in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/insert-if-not-exist-for-postgreSql/m-p/2330487#M99560</link>
    <description>Hello Kumar, 
&lt;BR /&gt;Thank you for your reply. Target table is more up-to date than source table so I dont wanna update datas in target table. I just wanna insert datas if not exist in target table. So thats what I need is below. 
&lt;BR /&gt;source table contain data like: 
&lt;BR /&gt;emp_id | emp_name 
&lt;BR /&gt;101 A 
&lt;BR /&gt;103 B 
&lt;BR /&gt;104 C 
&lt;BR /&gt;105 D 
&lt;BR /&gt;Target table contain data like: 
&lt;BR /&gt;emp_id | emp_name 
&lt;BR /&gt;101 A 
&lt;BR /&gt;103 E 
&lt;BR /&gt; 
&lt;BR /&gt;output should be like: 
&lt;BR /&gt;emp_id | emp_name 
&lt;BR /&gt;101 A 
&lt;BR /&gt;103 E 
&lt;BR /&gt;104 C 
&lt;BR /&gt;105 D 
&lt;BR /&gt; 
&lt;BR /&gt;Is it possible to this using Talend? 
&lt;BR /&gt;Thanks</description>
    <pubDate>Thu, 18 Jul 2013 08:03:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-07-18T08:03:27Z</dc:date>
    <item>
      <title>insert if not exist for postgreSql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/insert-if-not-exist-for-postgreSql/m-p/2330485#M99558</link>
      <description>Hello, 
&lt;BR /&gt;I am trying to merge data from mysql to postgreSql.. But I just wanna insert datas if not exist in Target table. 
&lt;BR /&gt;There is no option like "insert if not exist" in tPostgresqlOutput component. 
&lt;BR /&gt;In adition, both table has primary key and this primary keys exactly same for the data which exist in both table.. 
&lt;BR /&gt;So I guess there should be a way to avoid to update datas which exist in target table.. 
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 17 Jul 2013 10:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/insert-if-not-exist-for-postgreSql/m-p/2330485#M99558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-17T10:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: insert if not exist for postgreSql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/insert-if-not-exist-for-postgreSql/m-p/2330486#M99559</link>
      <description>Hi , 
&lt;BR /&gt;In tpostgresqloutput component properties. 
&lt;BR /&gt;Go to the "Action on data" and select the 'insert or update' option from drop down list. 
&lt;BR /&gt; Insert or update working like: 
&lt;BR /&gt;New record insert in target table, 
&lt;BR /&gt;Existing record updated in target table. 
&lt;BR /&gt;source table contain data like: 
&lt;BR /&gt;emp_id | emp_name 
&lt;BR /&gt;101 A 
&lt;BR /&gt;103 B 
&lt;BR /&gt;104 C 
&lt;BR /&gt;105 D 
&lt;BR /&gt;Target table contain data like: 
&lt;BR /&gt;emp_id | emp_name 
&lt;BR /&gt;101 A 
&lt;BR /&gt;103 E 
&lt;BR /&gt; 
&lt;BR /&gt;select the 'insert or update' option from drop down list 
&lt;BR /&gt;Execute the job . 
&lt;BR /&gt;output become like: Target table 
&lt;BR /&gt;emp_id | emp_name 
&lt;BR /&gt;101 A 
&lt;BR /&gt;103 B 
&lt;BR /&gt;104 C 
&lt;BR /&gt;105 D 
&lt;BR /&gt;Here 104,105 are new records and 103 emp_name update with B. 
&lt;BR /&gt;Because 103 emp_name is B in source table. 
&lt;BR /&gt;i.e 103 emp_name is updated B in target table. 
&lt;BR /&gt;Regards. 
&lt;BR /&gt;kumar.talend</description>
      <pubDate>Wed, 17 Jul 2013 12:33:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/insert-if-not-exist-for-postgreSql/m-p/2330486#M99559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-17T12:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: insert if not exist for postgreSql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/insert-if-not-exist-for-postgreSql/m-p/2330487#M99560</link>
      <description>Hello Kumar, 
&lt;BR /&gt;Thank you for your reply. Target table is more up-to date than source table so I dont wanna update datas in target table. I just wanna insert datas if not exist in target table. So thats what I need is below. 
&lt;BR /&gt;source table contain data like: 
&lt;BR /&gt;emp_id | emp_name 
&lt;BR /&gt;101 A 
&lt;BR /&gt;103 B 
&lt;BR /&gt;104 C 
&lt;BR /&gt;105 D 
&lt;BR /&gt;Target table contain data like: 
&lt;BR /&gt;emp_id | emp_name 
&lt;BR /&gt;101 A 
&lt;BR /&gt;103 E 
&lt;BR /&gt; 
&lt;BR /&gt;output should be like: 
&lt;BR /&gt;emp_id | emp_name 
&lt;BR /&gt;101 A 
&lt;BR /&gt;103 E 
&lt;BR /&gt;104 C 
&lt;BR /&gt;105 D 
&lt;BR /&gt; 
&lt;BR /&gt;Is it possible to this using Talend? 
&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 18 Jul 2013 08:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/insert-if-not-exist-for-postgreSql/m-p/2330487#M99560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-18T08:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: insert if not exist for postgreSql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/insert-if-not-exist-for-postgreSql/m-p/2330488#M99561</link>
      <description>Hi, 
&lt;BR /&gt; 
&lt;BR /&gt;It is possible through Query. 
&lt;BR /&gt;Source Table Name: EMP 
&lt;BR /&gt;Target Table Name: EMP1 
&lt;BR /&gt;Both Table have same schema. 
&lt;BR /&gt;Query : 
&lt;BR /&gt;"select emp_id,emp_name from EMP where emp_id in 
&lt;BR /&gt;((select emp_id from EMP) except (select emp_id from EMP1)" 
&lt;BR /&gt;Write the above query in tpostgresSqlInput Query body: 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;kumar.talend</description>
      <pubDate>Thu, 18 Jul 2013 14:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/insert-if-not-exist-for-postgreSql/m-p/2330488#M99561</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-18T14:39:42Z</dc:date>
    </item>
  </channel>
</rss>

