<?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 type 2 logic but not using SCD component.  Any suggestions? in Data Quality</title>
    <link>https://community.qlik.com/t5/Data-Quality/SCD-type-2-logic-but-not-using-SCD-component-Any-suggestions/m-p/2273790#M2909</link>
    <description>&lt;P&gt;Check this vedio for full understanding of type 2 :&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=dH567IFszu4" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.youtube.com/watch?v=dH567IFszu4&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2019 04:39:57 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-27T04:39:57Z</dc:date>
    <item>
      <title>SCD type 2 logic but not using SCD component.  Any suggestions?</title>
      <link>https://community.qlik.com/t5/Data-Quality/SCD-type-2-logic-but-not-using-SCD-component-Any-suggestions/m-p/2273785#M2904</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm loading a csv file that consists of list of zipcodes that has been downloaded from the Internet.&amp;nbsp; My keys are combination of Zipcode, City, State and Longitude.&amp;nbsp; I would load it in Postgres Database.&amp;nbsp; The requirement is to compare if these combinations already exists, check if there are changes, If there is, insert a new record of the recent changes and marked the old record as expired.&amp;nbsp; Otherwise, if the combination doesn't exists yet, insert the record and marked it as a new record.&amp;nbsp; I believe this is SCD type 2.&amp;nbsp; As much as I want to use the SCD component, I'm afraid I'm not familiar with it and its behavior.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestion how can I implement this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 06:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/SCD-type-2-logic-but-not-using-SCD-component-Any-suggestions/m-p/2273785#M2904</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T06:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: SCD type 2 logic but not using SCD component.  Any suggestions?</title>
      <link>https://community.qlik.com/t5/Data-Quality/SCD-type-2-logic-but-not-using-SCD-component-Any-suggestions/m-p/2273786#M2905</link>
      <description>&lt;P&gt;SCD component example&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="http://dwteam.in/scd-type2-talend-open-studio/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://dwteam.in/scd-type2-talend-open-studio/&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/hm5FaPiiOP31nUYHph0JwQ/3Lyn4CR4M5Q2uOD8FWmOwg" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/hm5FaPiiOP31nUYHph0JwQ/3Lyn4CR4M5Q2uOD8FWmOwg&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Otherwise&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCo8RCAS#M5082" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Flag-not-updating-based-on-condition/m-p/26823#M5082&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=dH567IFszu4" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.youtube.com/watch?v=dH567IFszu4&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 13:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/SCD-type-2-logic-but-not-using-SCD-component-Any-suggestions/m-p/2273786#M2905</guid>
      <dc:creator>akumar2301</dc:creator>
      <dc:date>2019-03-22T13:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: SCD type 2 logic but not using SCD component.  Any suggestions?</title>
      <link>https://community.qlik.com/t5/Data-Quality/SCD-type-2-logic-but-not-using-SCD-component-Any-suggestions/m-p/2273787#M2906</link>
      <description>&lt;P&gt;Implemenation of SCD is very simple in Talned&lt;/P&gt; 
&lt;P&gt;check below :&lt;/P&gt; 
&lt;P&gt;&lt;A href="http://dwteam.in/scd-type2-talend-open-studio/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://dwteam.in/scd-type2-talend-open-studio/&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The logic that u need to build with out SCD also simple with tmap.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;(source--main) tmap (target--lookup) ---&amp;gt; use inner join&lt;/P&gt; 
&lt;P&gt;take 3 out puts&lt;/P&gt; 
&lt;P&gt;1. matched records (one of these matched becomes existing record(use insert) with end date as -1 or high end value)&lt;/P&gt; 
&lt;P&gt;2. matched records(one of these matched becomes existingrecord(use update) with end date as startdate-1 )&lt;/P&gt; 
&lt;P&gt;3. un matched records(with inner join rejected link) --- will become new records(insert them to db)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;let me know if you need more details&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2019 09:06:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/SCD-type-2-logic-but-not-using-SCD-component-Any-suggestions/m-p/2273787#M2906</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-25T09:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: SCD type 2 logic but not using SCD component.  Any suggestions?</title>
      <link>https://community.qlik.com/t5/Data-Quality/SCD-type-2-logic-but-not-using-SCD-component-Any-suggestions/m-p/2273788#M2907</link>
      <description>&lt;P&gt;Thank you for your response. &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I tried once again the SCD component.&amp;nbsp; I have source keys with the combination of city, longitude, zipcode and state.&amp;nbsp; I also created the following columns in my table:&amp;nbsp; end_dtae, is_active, sg_key and start_date.&amp;nbsp; I have type 0 fields and type 2 fields form my table as well.&amp;nbsp; When I put sg_key as surrogate keys and selected table max+1 as creation, it gets me an error.&amp;nbsp; But when I put the sg_key as source keys, it processed.&amp;nbsp; Also, I tried to modify the state and load again, the first record still has the end_date as 2099, it should be the run date of the second record? and the is_active flag of the first record, still is true. &amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any thoughts?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Lv76"&gt;scd2.JPG&lt;/A&gt;</description>
      <pubDate>Mon, 25 Mar 2019 13:45:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/SCD-type-2-logic-but-not-using-SCD-component-Any-suggestions/m-p/2273788#M2907</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-25T13:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: SCD type 2 logic but not using SCD component.  Any suggestions?</title>
      <link>https://community.qlik.com/t5/Data-Quality/SCD-type-2-logic-but-not-using-SCD-component-Any-suggestions/m-p/2273789#M2908</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPKBAA4"&gt;@mj_00&lt;/A&gt;&amp;nbsp; if your source keys are(basically primary key of your table)&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;combination of city, longitude, zipcode and state then you need to select all of them in "SOURCE KEY" section&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;and if state is part of your primary key and if you modify it then it never updates the existing record because it considers that record as new record only (so this will be inserted as new record)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;surrogate key is a natural key which always has unique value ...&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;don't forget to give kudos if that helps you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 04:38:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/SCD-type-2-logic-but-not-using-SCD-component-Any-suggestions/m-p/2273789#M2908</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-27T04:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: SCD type 2 logic but not using SCD component.  Any suggestions?</title>
      <link>https://community.qlik.com/t5/Data-Quality/SCD-type-2-logic-but-not-using-SCD-component-Any-suggestions/m-p/2273790#M2909</link>
      <description>&lt;P&gt;Check this vedio for full understanding of type 2 :&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=dH567IFszu4" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.youtube.com/watch?v=dH567IFszu4&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 04:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Data-Quality/SCD-type-2-logic-but-not-using-SCD-component-Any-suggestions/m-p/2273790#M2909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-27T04:39:57Z</dc:date>
    </item>
  </channel>
</rss>

