<?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: tmap joining 2 tables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202507#M4176</link>
    <description>&lt;P&gt;Thank you, I will try to test the solutions provided by you by tomorrow. I still have one question as Im not the DB owner nor admin, is there a way to deal with not indexed columns in DB, for instance the timestamp and creationdate columns are not indexed and I guess it will take ages to execute as there are around 20 million records.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2019 16:49:09 GMT</pubDate>
    <dc:creator>Moe1</dc:creator>
    <dc:date>2019-10-15T16:49:09Z</dc:date>
    <item>
      <title>tmap joining 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202499#M4168</link>
      <description>&lt;P&gt;Im joining 2 tables in tmap based on key (ID) and timestamp range....&lt;/P&gt;&lt;P&gt;Table 1&lt;/P&gt;&lt;P&gt;username&lt;/P&gt;&lt;P&gt;userID&lt;/P&gt;&lt;P&gt;timestamp&lt;/P&gt;&lt;P&gt;------&lt;/P&gt;&lt;P&gt;Table 2&lt;/P&gt;&lt;P&gt;username&lt;/P&gt;&lt;P&gt;userID&lt;/P&gt;&lt;P&gt;creationdate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in tmap (im linking userid to userid) and I need to link timestamp to creationdate but (the creationdate might be equal to any range of timestamp field +/- 1 hour).. how to do it in tmap.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:22:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202499#M4168</guid>
      <dc:creator>Moe1</dc:creator>
      <dc:date>2024-11-16T04:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: tmap joining 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202500#M4169</link>
      <description>Use a classic inner join based on UserId and then add a filter expression on the output flow to exclude records not responding to your rule. Using tMap local variable to compute timestamp +/- 1 hour should help.</description>
      <pubDate>Tue, 15 Oct 2019 14:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202500#M4169</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-15T14:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: tmap joining 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202501#M4170</link>
      <description>&lt;P&gt;Thank you, you mean like the attached screenshot?&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LwjJ"&gt;2.jpg&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LwjT"&gt;1.jpg&lt;/A&gt;</description>
      <pubDate>Tue, 15 Oct 2019 15:00:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202501#M4170</guid>
      <dc:creator>Moe1</dc:creator>
      <dc:date>2019-10-15T15:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: tmap joining 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202502#M4171</link>
      <description>Looks fine.
&lt;BR /&gt;You just have to validate the expression filter.</description>
      <pubDate>Tue, 15 Oct 2019 15:13:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202502#M4171</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-15T15:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: tmap joining 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202503#M4172</link>
      <description>&lt;P&gt;Thanks, I need one more thing.. I also need to add to the expression filter another field, I need to match a field&amp;nbsp; from table 1 to table 2, but the field in table is a subset from the field in table 2:&lt;/P&gt; 
&lt;P&gt;Table 1&lt;/P&gt; 
&lt;P&gt;agent&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Table 2&lt;/P&gt; 
&lt;P&gt;Description&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Description format is like this ip pipe agent but it also store -1 or N/A etc...: IP|agent&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I need to check if the field contains IP|agent, I need to remove everything from the pipe backwards and compare everything after the pipe.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 15:26:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202503#M4172</guid>
      <dc:creator>Moe1</dc:creator>
      <dc:date>2019-10-15T15:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: tmap joining 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202504#M4173</link>
      <description>&lt;P&gt;Use a tMap local variable to remove the beginning of the string with the following expression:&lt;/P&gt; 
&lt;PRE&gt;row1.description.replaceAll("^.*\|", "")&lt;/PRE&gt; 
&lt;P&gt;(Try without the | or with double \ if it doesn't work).&lt;/P&gt; 
&lt;P&gt;Then reuse the variable in your tMap output filter expression.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 15:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202504#M4173</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-15T15:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: tmap joining 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202505#M4174</link>
      <description>&lt;P&gt;It seems that my date range function using talenddate is not working, any ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 15:56:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202505#M4174</guid>
      <dc:creator>Moe1</dc:creator>
      <dc:date>2019-10-15T15:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: tmap joining 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202506#M4175</link>
      <description>&lt;P&gt;Maybe you can try with diffDate:&lt;/P&gt;&lt;PRE&gt;Math.abs(TalendDate.diffDate(TalendDate.parseDate("yyyy-MM-dd HH:mm:ss", row2.CREATIONDATE), TalendDate.parseDate("yyyy-MM-dd HH:mm:ss", row1.m_timestamp), "HH")) &amp;gt; 1&lt;/PRE&gt;&lt;P&gt;Depending of what you want, change "&amp;gt; 1" by "&amp;lt;= 1" or something else.&lt;/P&gt;&lt;P&gt;Should work (but not tested).&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 16:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202506#M4175</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-15T16:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: tmap joining 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202507#M4176</link>
      <description>&lt;P&gt;Thank you, I will try to test the solutions provided by you by tomorrow. I still have one question as Im not the DB owner nor admin, is there a way to deal with not indexed columns in DB, for instance the timestamp and creationdate columns are not indexed and I guess it will take ages to execute as there are around 20 million records.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2019 16:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202507#M4176</guid>
      <dc:creator>Moe1</dc:creator>
      <dc:date>2019-10-15T16:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: tmap joining 2 tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202508#M4177</link>
      <description>Hum... this is a new question. 
&lt;BR /&gt;Try first to solve the initial case. 
&lt;BR /&gt;Then regarding the volume, you'll probably have memory issues... 
&lt;BR /&gt;If you have 20 millions records into the lookup table, loading all the records at once could be difficult. 
&lt;BR /&gt;There is no problem regarding the fact there is no index on the "date" fields as soon as you don't use them in your SQL queries. 
&lt;BR /&gt;If you do, you should negotiate the appropriate index with your preferred DBA.</description>
      <pubDate>Tue, 15 Oct 2019 16:58:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tmap-joining-2-tables/m-p/2202508#M4177</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-10-15T16:58:27Z</dc:date>
    </item>
  </channel>
</rss>

