<?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: Set scd_end of tOracleSCD manually in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262358#M42846</link>
    <description>The problem with the mentioned sequence function is, every run of the job starts with the same value, that is probably not what some one want to have for a surrogate key.
&lt;BR /&gt;There are different ways: The easiest one is to define the table column as serial (MySQL) or as an identity column (IBM DB2). The other way is to use a sequence. You could read the sequence value before with a combination if tMap + tOracleInput (as lookup and using a separate connection) or you can define the surrogate key in the SCD editor.</description>
    <pubDate>Thu, 23 Jan 2014 19:58:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-01-23T19:58:31Z</dc:date>
    <item>
      <title>Set scd_end of tOracleSCD manually</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262352#M42840</link>
      <description>Hi folks, 
&lt;BR /&gt;I have the following problem: 
&lt;BR /&gt;We are about to migrate a database which is used for reporting to a new DWH, which should have a slightly different structure. Until now, one of the Dimension Tables has VALID_FROM and VALID_TO Columns. 
&lt;BR /&gt;Now, while filling the new SCD Table, I'd like to use these columns to fill scd_start and scd_end. 
&lt;BR /&gt;Is there any way to use a input field for scd_end? Can you provide an alternative solution? 
&lt;BR /&gt;Regards!</description>
      <pubDate>Wed, 22 Jan 2014 13:17:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262352#M42840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-22T13:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set scd_end of tOracleSCD manually</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262353#M42841</link>
      <description>Yes of course, please take not there are comboboxes next to the field scd_start and scd_end. 
&lt;BR /&gt;Next to scd_start (or what ever your field name is) you can choose "Input field". 
&lt;BR /&gt;The component fulfills exactly your needs.</description>
      <pubDate>Wed, 22 Jan 2014 21:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262353#M42841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-22T21:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set scd_end of tOracleSCD manually</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262354#M42842</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Yes of course, please take not there are comboboxes next to the field scd_start and scd_end.&lt;BR /&gt;Next to scd_start (or what ever your field name is) you can choose "Input field".&lt;BR /&gt;The component fulfills exactly your needs.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Hello jlolling, 
&lt;BR /&gt;sadly that's only true for scd_start. For scd_end one can only choose between NULL or FIXED YEAR. This applies for tOracleSCD and tOracleSCDELT. It is not possible to drag a incoming field into the complement row next to scd_end 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MChD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140662i08B8956D03A429E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MChD.png" alt="0683p000009MChD.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Thu, 23 Jan 2014 08:20:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262354#M42842</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-23T08:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set scd_end of tOracleSCD manually</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262355#M42843</link>
      <description>If you actually have all time slices in your source, you do not need the tOracleSCD component. I guess you have 2 task:&lt;BR /&gt;Initial loading of your data (with the already existing time ranges) --&amp;gt; use tOracleOutput&lt;BR /&gt;incremental loading with SCD because you detect the change date in your job or in your sources --&amp;gt; tOracleSCD&lt;BR /&gt;It does not make sense to get the scd_end date also from the source because everything what the tOracleSCD component supports is already done.</description>
      <pubDate>Thu, 23 Jan 2014 09:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262355#M42843</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-23T09:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Set scd_end of tOracleSCD manually</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262356#M42844</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;If you actually have all time slices in your source, you do not need the tOracleSCD component. I guess you have 2 task:&lt;BR /&gt;Initial loading of your data (with the already existing time ranges) --&amp;gt; use tOracleOutput&lt;BR /&gt;incremental loading with SCD because you detect the change date in your job or in your sources --&amp;gt; tOracleSCD&lt;BR /&gt;It does not make sense to get the scd_end date also from the source because everything what the tOracleSCD component supports is already done.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;You are right here, I will do the initial load with a standard tOracleOutput. What is the best way to generate the SurrogateKeys with a tOracleOutput. Saying, using TableMax+1 as a sequence for a Key Field which is not in the input rows?</description>
      <pubDate>Thu, 23 Jan 2014 09:56:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262356#M42844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-23T09:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set scd_end of tOracleSCD manually</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262357#M42845</link>
      <description>Hi,&lt;BR /&gt;If you want to add surrogate keys, you can do so by using a sequence function which is part of Numeric functions. Here you could add the table max as the starting value. The table max could be stored in a variable before being used in the sequence function.</description>
      <pubDate>Thu, 23 Jan 2014 15:57:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262357#M42845</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-23T15:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set scd_end of tOracleSCD manually</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262358#M42846</link>
      <description>The problem with the mentioned sequence function is, every run of the job starts with the same value, that is probably not what some one want to have for a surrogate key.
&lt;BR /&gt;There are different ways: The easiest one is to define the table column as serial (MySQL) or as an identity column (IBM DB2). The other way is to use a sequence. You could read the sequence value before with a combination if tMap + tOracleInput (as lookup and using a separate connection) or you can define the surrogate key in the SCD editor.</description>
      <pubDate>Thu, 23 Jan 2014 19:58:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262358#M42846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-23T19:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set scd_end of tOracleSCD manually</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262359#M42847</link>
      <description>Ok, I know how to do it now, thanks. I think for future releases it would be nice, if in an tDbOutput component one would have the possibility to add an PK field which then is automatically mapped to a DB Sequence, Tablemax or whatever. I'll suggest that in Jira 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA9p.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138034i5F552429DA646D6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA9p.png" alt="0683p000009MA9p.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;EDIT: Done 
&lt;A href="https://jira.talendforge.org/browse/TDI-28644" rel="nofollow noopener noreferrer"&gt;https://jira.talendforge.org/browse/TDI-28644&lt;/A&gt;</description>
      <pubDate>Fri, 24 Jan 2014 08:03:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262359#M42847</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-24T08:03:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set scd_end of tOracleSCD manually</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262360#M42848</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi,&lt;BR /&gt;If you want to add surrogate keys, you can do so by using a sequence function which is part of Numeric functions. Here you could add the table max as the starting value. The table max could be stored in a variable before being used in the sequence function.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Here, I was thinking that we could set the max table value of the key in a variable and then use that variable plus one as the initial number in the sequence. 
&lt;BR /&gt;Like : sequence("S1", &amp;lt;variable with the max table key value t be incremented&amp;gt;, 1 &amp;lt;value by which to be incremented&amp;gt;)
&lt;BR /&gt;So it will start with new value every time table max changes.
&lt;BR /&gt;It would have to use tmap, and using a variable is when not looking up on the target table.</description>
      <pubDate>Fri, 24 Jan 2014 08:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Set-scd-end-of-tOracleSCD-manually/m-p/2262360#M42848</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-24T08:17:43Z</dc:date>
    </item>
  </channel>
</rss>

