<?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: Is there a simple way to sync two tables while ignoring rows that are equal? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Is-there-a-simple-way-to-sync-two-tables-while-ignoring-rows/m-p/2359219#M124086</link>
    <description>&lt;P&gt;Thanks.  I may just do the work in the database and transfer the results to the target table.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Aug 2021 11:43:41 GMT</pubDate>
    <dc:creator>nsavich</dc:creator>
    <dc:date>2021-08-05T11:43:41Z</dc:date>
    <item>
      <title>Is there a simple way to sync two tables while ignoring rows that are equal?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-there-a-simple-way-to-sync-two-tables-while-ignoring-rows/m-p/2359217#M124084</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am very new to Talend, and realize that this might be a rather ignorant question, but I am curious whether this scenario is possible as a function of the tMap component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables - a source and a target.&amp;nbsp;I want to keep the target table updated via the source table, but I want to preserve the rows in the target table that have not changed.&amp;nbsp;This seems to be a pretty typical ETL scenario, but I am not finding a simple method of enforcing this in Talend - insert rows that are missing in the target.&amp;nbsp;Update rows that have changed in the source for the given primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was told to use tDBInput tMap and tDBOutput, defining the schema for both the input and output and mapping the columns via tMap in addition to defining a primary key in both the source and target tables.&amp;nbsp;I am 100% confident that my schemas are defined correctly.&amp;nbsp;Fields are mapped accurately.&amp;nbsp;Data types are the same.&amp;nbsp;The tDBOutput "Action on Data" value is set to "Insert or Update".&amp;nbsp;However, all rows are being updated regardless of whether there is a difference between the source and target.&amp;nbsp;My assumption was that Talend would use the primary keys to determine whether to insert a row, or otherwise evaluate the remaining columns to determine if any values were different between the source and target as related by the primary key join.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bad assumption on my part?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could always develop a different solution using a stored procedure or some other method.&amp;nbsp;It's not that I am looking for an easy solution, but I don't want to over engineer a simple process either.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:53:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-there-a-simple-way-to-sync-two-tables-while-ignoring-rows/m-p/2359217#M124084</guid>
      <dc:creator>nsavich</dc:creator>
      <dc:date>2024-11-15T23:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a simple way to sync two tables while ignoring rows that are equal?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-there-a-simple-way-to-sync-two-tables-while-ignoring-rows/m-p/2359218#M124085</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You are right, Talend use the primay keys to determine whether to insert a row or update a row. If the primary keys already exist, it will update the remining columns regardless of whether they are the same.&lt;/P&gt;&lt;P&gt;If you want the ignore the rows that are equals, you need to do a join between source table and target table based on all columns using tMap to get the identical rows, the performance is bad if the amount of data is large.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 09:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-there-a-simple-way-to-sync-two-tables-while-ignoring-rows/m-p/2359218#M124085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-08-05T09:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a simple way to sync two tables while ignoring rows that are equal?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Is-there-a-simple-way-to-sync-two-tables-while-ignoring-rows/m-p/2359219#M124086</link>
      <description>&lt;P&gt;Thanks.  I may just do the work in the database and transfer the results to the target table.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Aug 2021 11:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Is-there-a-simple-way-to-sync-two-tables-while-ignoring-rows/m-p/2359219#M124086</guid>
      <dc:creator>nsavich</dc:creator>
      <dc:date>2021-08-05T11:43:41Z</dc:date>
    </item>
  </channel>
</rss>

