<?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/End date older record when value changes in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/INSERT-new-record-End-date-older-record-when-value-changes/m-p/2310278#M81417</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to use the t{database type}SCD component.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
    <pubDate>Sun, 20 Mar 2022 16:05:21 GMT</pubDate>
    <dc:creator>David_Beaty</dc:creator>
    <dc:date>2022-03-20T16:05:21Z</dc:date>
    <item>
      <title>INSERT new record/End date older record when value changes</title>
      <link>https://community.qlik.com/t5/Talend-Studio/INSERT-new-record-End-date-older-record-when-value-changes/m-p/2310277#M81416</link>
      <description>&lt;P&gt;Hi all, could use some help. Not able to figure out a way to achieve the below requirement.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my scenario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a employee history table that is static(ie doesnt change/no data loads happen to this table). This table tracks the Underwriter(employee) history when the Manager changes with the help of Effective and Expiration dates. This table has multiple records per UW_NAME with latest record showing EXPIRATION_DATE of '12/31/9999'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;emp_history table: &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AaGaYAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141439iD79C8B1F25E7B4E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AaGaYAAV.png" alt="0693p00000AaGaYAAV.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also have another table that is loaded with new data on a daily basis. This table has the most current assignments of the Underwriters and their Managers and shows only the LATEST Manager names.  This table always has 1 record per UW_NAME&lt;/P&gt;&lt;P&gt;As you can notice the 'Latest' manager for 'LARRY' and 'JACK' has changed when compared to the above history table. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AaGY4AAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153470i087F7F5C22B9B542/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AaGY4AAN.png" alt="0693p00000AaGY4AAN.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expected Result in a New Table:&lt;/P&gt;&lt;P&gt;Have to create a brand new table that maintains the format of table_history but pick up the latest 'Manager' from table_current. Have to update the Expiration_Date with the 'UPDATE_DATE' and create a new record with the latest manager name with the expiration_Date of '12/31/9999'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0693p00000AaGcPAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135034iD9E5A4572BEEFC9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0693p00000AaGcPAAV.png" alt="0693p00000AaGcPAAV.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have loaded the History table(table1) and Current table(table2) into oracle. Any thoughts what components to use next? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Talend Data Integration V 7.3.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:01:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/INSERT-new-record-End-date-older-record-when-value-changes/m-p/2310277#M81416</guid>
      <dc:creator>konquistador12</dc:creator>
      <dc:date>2024-11-16T01:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT new record/End date older record when value changes</title>
      <link>https://community.qlik.com/t5/Talend-Studio/INSERT-new-record-End-date-older-record-when-value-changes/m-p/2310278#M81417</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You need to use the t{database type}SCD component.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Sun, 20 Mar 2022 16:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/INSERT-new-record-End-date-older-record-when-value-changes/m-p/2310278#M81417</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2022-03-20T16:05:21Z</dc:date>
    </item>
  </channel>
</rss>

