<?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 How to get last modified date for row in tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-last-modified-date-for-row-in-tmap/m-p/2303852#M75683</link>
    <description>&lt;P&gt;Hi everyone ,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We have two column in our data model . that is&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;LAST_UPDATE_TIME =&amp;nbsp; calculate only when row get updated in tmap&amp;nbsp;&lt;BR /&gt;CREATE_DATE = only When row get inserted first time in tmap&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How do i&amp;nbsp; calculate these column for each of my table at tmap.&lt;/P&gt; 
&lt;P&gt;if there is any better alternatives using talend, kindly share the process&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any help on this would be much appreciated&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 05:29:07 GMT</pubDate>
    <dc:creator>gt0731</dc:creator>
    <dc:date>2024-11-16T05:29:07Z</dc:date>
    <item>
      <title>How to get last modified date for row in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-last-modified-date-for-row-in-tmap/m-p/2303852#M75683</link>
      <description>&lt;P&gt;Hi everyone ,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;We have two column in our data model . that is&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;LAST_UPDATE_TIME =&amp;nbsp; calculate only when row get updated in tmap&amp;nbsp;&lt;BR /&gt;CREATE_DATE = only When row get inserted first time in tmap&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;How do i&amp;nbsp; calculate these column for each of my table at tmap.&lt;/P&gt; 
&lt;P&gt;if there is any better alternatives using talend, kindly share the process&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any help on this would be much appreciated&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:29:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-last-modified-date-for-row-in-tmap/m-p/2303852#M75683</guid>
      <dc:creator>gt0731</dc:creator>
      <dc:date>2024-11-16T05:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to get last modified date for row in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-last-modified-date-for-row-in-tmap/m-p/2303853#M75684</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;First of all, if LAST_UPDATE_TIME is null, then you know it's CREATE_DATE.&lt;/P&gt; 
&lt;P&gt;If both columns are populated, then I'd suggest you use the Talend routine TalendDate with a methof of compareDate().&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Have a look at this &lt;A href="https://help.talend.com/reader/yyWN3FfPMuKdLZZ0B3WN7A/zCycGxbPtOHJylzqjyVutQ" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;link&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 20:58:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-last-modified-date-for-row-in-tmap/m-p/2303853#M75684</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2019-06-25T20:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get last modified date for row in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-last-modified-date-for-row-in-tmap/m-p/2303854#M75685</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLpMAAW"&gt;@gt0731&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I believe you have two different flows from a tMap one for update and another for insert.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If not, you can create two different flows, and whenever you insert the Update Date column will be null and whenever you update the Update column will hold the value of current TimeStamp.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the update flow, no need to provide the Create date column, you can chose your keys, based on which you will insert/update.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks and Regards,&lt;/P&gt; 
&lt;P&gt;Subhadip&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 16:21:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-last-modified-date-for-row-in-tmap/m-p/2303854#M75685</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-26T16:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get last modified date for row in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-last-modified-date-for-row-in-tmap/m-p/2303855#M75686</link>
      <description>&lt;P&gt;No, We do not have 2 flows for insert and update.&lt;/P&gt;
&lt;P&gt;we use one flow only and based on key matching rows and in target selecting action -&amp;nbsp;insert or update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-How do we maintain&amp;nbsp; Last_update_time&amp;nbsp; timestamp column here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help on it would be much appreciated ?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 18:55:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-last-modified-date-for-row-in-tmap/m-p/2303855#M75686</guid>
      <dc:creator>gt0731</dc:creator>
      <dc:date>2019-06-27T18:55:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get last modified date for row in tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-get-last-modified-date-for-row-in-tmap/m-p/2303856#M75687</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLpMAAW"&gt;@gt0731&lt;/A&gt;&amp;nbsp;,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In this case, you should lookup with your target table with the keys in tMap.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Whenever keys are not present in the table, that means it is insert only so Update Timestamp is Null.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Whenever keys are present, the Update Timestamp should be Current Timestamp.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This logic you can write in tMap(if else condition based on key presence).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Best way would be to have two flows for insert and update.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks and Regards,&lt;/P&gt; 
&lt;P&gt;Subhadip&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 19:30:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-get-last-modified-date-for-row-in-tmap/m-p/2303856#M75687</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-27T19:30:43Z</dc:date>
    </item>
  </channel>
</rss>

