<?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: SCD implementaion in Talend 5.x +db2 db in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SCD-implementaion-in-Talend-5-x-db2-db/m-p/2333818#M102563</link>
    <description>Hi ushamu, 
&lt;BR /&gt;yes, it is possible to manage your scenario in TOS, but I think you can use a simple tMap-&amp;gt;tMSSqlOutput (or ever db output component for your db). 
&lt;BR /&gt;You already have source rows marked with correct operation (I,U,O), so use this column. 
&lt;BR /&gt;This is the example: 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/18588/talend_example.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAM0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132929i1E80706F3361C2F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAM0.png" alt="0683p000009MAM0.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;1- input is your source master table 
&lt;BR /&gt;2- tMap with filter expression for output flows: 
&lt;BR /&gt; 
&lt;BR /&gt;insert=&amp;gt; row1.change_data.equals("I") 
&lt;BR /&gt;update=&amp;gt; row1.change_data.equals("U") 
&lt;BR /&gt;delte=&amp;gt; row1.change_data.equals("O") 
&lt;BR /&gt;3- for every output choose the correct action on rows (insert, update, delete) 
&lt;BR /&gt;If you can use "change_data" column to apply insert/update/delete operations to child rows, you can reuse same logic, but use these tables as primary and do a lookup to master table in tMap component. 
&lt;BR /&gt;At the end, you need to reset "change_data" column? or do you have a date to filter rows processed?</description>
    <pubDate>Tue, 26 Jul 2016 15:24:45 GMT</pubDate>
    <dc:creator>gorotman</dc:creator>
    <dc:date>2016-07-26T15:24:45Z</dc:date>
    <item>
      <title>SCD implementaion in Talend 5.x +db2 db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SCD-implementaion-in-Talend-5-x-db2-db/m-p/2333814#M102559</link>
      <description>Can SCD implementation in talend be used for synching up data between source and destination tables. 
&lt;BR /&gt;The source and destination tables has master and child tables with parent child relationships. 
&lt;BR /&gt;Any changes(insert/update/delete) on source's parent and child tables needs to be sycnhed up with destination parent and child&amp;nbsp; tables. 
&lt;BR /&gt;Source table shall have an indication KEY column for identifying changed data 
&lt;BR /&gt;Any inputs on this will be appreciated.</description>
      <pubDate>Mon, 25 Jul 2016 10:09:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SCD-implementaion-in-Talend-5-x-db2-db/m-p/2333814#M102559</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-25T10:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: SCD implementaion in Talend 5.x +db2 db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SCD-implementaion-in-Talend-5-x-db2-db/m-p/2333815#M102560</link>
      <description>I am also expecting answer&amp;nbsp;</description>
      <pubDate>Mon, 25 Jul 2016 12:20:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SCD-implementaion-in-Talend-5-x-db2-db/m-p/2333815#M102560</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-25T12:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: SCD implementaion in Talend 5.x +db2 db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SCD-implementaion-in-Talend-5-x-db2-db/m-p/2333816#M102561</link>
      <description>Hi,&lt;BR /&gt;may you preparare an example to better explain your requests?</description>
      <pubDate>Mon, 25 Jul 2016 13:29:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SCD-implementaion-in-Talend-5-x-db2-db/m-p/2333816#M102561</guid>
      <dc:creator>gorotman</dc:creator>
      <dc:date>2016-07-25T13:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: SCD implementaion in Talend 5.x +db2 db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SCD-implementaion-in-Talend-5-x-db2-db/m-p/2333817#M102562</link>
      <description>Hi gorotman, 
&lt;BR /&gt;Thanks for your reply. Please find the example scenario. 
&lt;BR /&gt;1. Source db has below tables 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp; - employee ( master table) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; - employee_address and employee_salary ( child tables) 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; emp_id as acts a key column . 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; employee master has a column named " change_data"&amp;nbsp;&amp;nbsp; which shall have identification for change data "I",'U' and&amp;nbsp; "D" and 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the child tables in source will not have any identifcation column for identifyig the changed data 
&lt;BR /&gt;2. Destination db also has employee,employee_address and employee_salary table with similar data structure as that of source db. 
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; On daily basis the employee,employee_address and employee_salary tables in destination db needs synched up with change&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data from the source db.data has to be synched in both parent and child tables 
&lt;BR /&gt; 
&lt;BR /&gt;Can we achieve this via SCD ? I believe SCD Type 1 is capable of performing updates on dest table . 
&lt;BR /&gt;&amp;nbsp;Having said that in our case the change data flag is available only in master table so is this SCD implemtation capable of updating child&amp;nbsp;&amp;nbsp; records also along with the parent records</description>
      <pubDate>Tue, 26 Jul 2016 09:10:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SCD-implementaion-in-Talend-5-x-db2-db/m-p/2333817#M102562</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-07-26T09:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: SCD implementaion in Talend 5.x +db2 db</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SCD-implementaion-in-Talend-5-x-db2-db/m-p/2333818#M102563</link>
      <description>Hi ushamu, 
&lt;BR /&gt;yes, it is possible to manage your scenario in TOS, but I think you can use a simple tMap-&amp;gt;tMSSqlOutput (or ever db output component for your db). 
&lt;BR /&gt;You already have source rows marked with correct operation (I,U,O), so use this column. 
&lt;BR /&gt;This is the example: 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/18588/talend_example.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAM0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132929i1E80706F3361C2F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAM0.png" alt="0683p000009MAM0.png" /&gt;&lt;/span&gt; &lt;/A&gt; 
&lt;BR /&gt;1- input is your source master table 
&lt;BR /&gt;2- tMap with filter expression for output flows: 
&lt;BR /&gt; 
&lt;BR /&gt;insert=&amp;gt; row1.change_data.equals("I") 
&lt;BR /&gt;update=&amp;gt; row1.change_data.equals("U") 
&lt;BR /&gt;delte=&amp;gt; row1.change_data.equals("O") 
&lt;BR /&gt;3- for every output choose the correct action on rows (insert, update, delete) 
&lt;BR /&gt;If you can use "change_data" column to apply insert/update/delete operations to child rows, you can reuse same logic, but use these tables as primary and do a lookup to master table in tMap component. 
&lt;BR /&gt;At the end, you need to reset "change_data" column? or do you have a date to filter rows processed?</description>
      <pubDate>Tue, 26 Jul 2016 15:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SCD-implementaion-in-Talend-5-x-db2-db/m-p/2333818#M102563</guid>
      <dc:creator>gorotman</dc:creator>
      <dc:date>2016-07-26T15:24:45Z</dc:date>
    </item>
  </channel>
</rss>

