<?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: using date ranges in join condition of a tmap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/using-date-ranges-in-join-condition-of-a-tmap/m-p/2334987#M103593</link>
    <description>Hi,&lt;BR /&gt;If you're using an RDBMS, use this query in an input component.&lt;BR /&gt;select t.*&lt;BR /&gt;from Td t&lt;BR /&gt;WHERE EXISTS &lt;BR /&gt;(select * from TdLookup tl &lt;BR /&gt;where t.tdDate &amp;gt;= tl.tdLookupStartDate AND t.tdDate &amp;lt;= tl.tdLookupEndDate)</description>
    <pubDate>Mon, 20 Feb 2012 17:41:05 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-02-20T17:41:05Z</dc:date>
    <item>
      <title>using date ranges in join condition of a tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/using-date-ranges-in-join-condition-of-a-tmap/m-p/2334986#M103592</link>
      <description>hello everyone&lt;BR /&gt;I want to join two tables based on the date ranges. I have tradedate column in main link and STARTDATE and ENDDATE columns in lookup link. I need to check whether tradedate is on or after the STARTDATE and on or before ENDDATE. I am not able to run the query to meet this requirement inside the instance because of heapspace error problem . Plz help me how to do this inside tMap component or some other components.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;S.Arasu.</description>
      <pubDate>Sat, 16 Nov 2024 12:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/using-date-ranges-in-join-condition-of-a-tmap/m-p/2334986#M103592</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: using date ranges in join condition of a tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/using-date-ranges-in-join-condition-of-a-tmap/m-p/2334987#M103593</link>
      <description>Hi,&lt;BR /&gt;If you're using an RDBMS, use this query in an input component.&lt;BR /&gt;select t.*&lt;BR /&gt;from Td t&lt;BR /&gt;WHERE EXISTS &lt;BR /&gt;(select * from TdLookup tl &lt;BR /&gt;where t.tdDate &amp;gt;= tl.tdLookupStartDate AND t.tdDate &amp;lt;= tl.tdLookupEndDate)</description>
      <pubDate>Mon, 20 Feb 2012 17:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/using-date-ranges-in-join-condition-of-a-tmap/m-p/2334987#M103593</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-20T17:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: using date ranges in join condition of a tmap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/using-date-ranges-in-join-condition-of-a-tmap/m-p/2334988#M103594</link>
      <description>Hi,
&lt;BR /&gt;I got the same problem. But I can't apply the walkerca solution as the 2 streams (main and lookup) are coming from 2 different databases.
&lt;BR /&gt;I solved partialy the problem with a tmap component. I filter my loopup stream with an date between expression. (cf pictures above). This solution works: the output 'AVEC_ACTIVITE' gets all the rows that are matching the date between condition. 
&lt;BR /&gt;But I want to get all the rows that are not matching the date between expression too. I made a 2nd output 'SANS_ACTIVITE' with the 'catch output reject' activated bot no rows are coming in. 
&lt;BR /&gt;I tryed a 2nd trick by putting the date between condition in the output 'AVEC_ACTIVITE' but in this case, too much rows are streaming in the 2nd output because these are the result of the cross join of the two inputs. 
&lt;BR /&gt;For example:
&lt;BR /&gt;Input1 (input with date to compare):
&lt;BR /&gt;A1 - 01/01/2012
&lt;BR /&gt;A2 - 02/01/2012
&lt;BR /&gt;A3 - 03/01/2012
&lt;BR /&gt;A4 - 05/01/2012
&lt;BR /&gt;Input2 (imput with date range):
&lt;BR /&gt;B1 - 31/12/2012 - 02/01/2012
&lt;BR /&gt;B2 - 02/01/2012 - 04/01/2012
&lt;BR /&gt;output1 (dates in range (inner join)):
&lt;BR /&gt;A1 - B1
&lt;BR /&gt;A2 - B2
&lt;BR /&gt;A3 - B2
&lt;BR /&gt;output2 (rejects from inner join):
&lt;BR /&gt;A4
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;Any idea ?
&lt;BR /&gt;I'm using TOS 5.0.1
&lt;BR /&gt;Thanks</description>
      <pubDate>Thu, 01 Mar 2012 10:47:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/using-date-ranges-in-join-condition-of-a-tmap/m-p/2334988#M103594</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-03-01T10:47:29Z</dc:date>
    </item>
  </channel>
</rss>

