<?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: Join 2 tables  with a condition based on max date from the third table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Join-2-tables-with-a-condition-based-on-max-date-from-the-third/m-p/2288271#M61776</link>
    <description>if all your data are on the same db it will be quickest to us sql or plsql proc.&lt;BR /&gt;on tqlend you can activate thmap on:&lt;BR /&gt;file&lt;BR /&gt;edit project property&lt;BR /&gt;Designer&lt;BR /&gt;Settings&lt;BR /&gt;TEchnical&lt;BR /&gt;&lt;BR /&gt;you can also use file or table on your db&lt;BR /&gt;</description>
    <pubDate>Mon, 17 Jun 2019 12:26:28 GMT</pubDate>
    <dc:creator>fdenis</dc:creator>
    <dc:date>2019-06-17T12:26:28Z</dc:date>
    <item>
      <title>Join 2 tables  with a condition based on max date from the third table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-2-tables-with-a-condition-based-on-max-date-from-the-third/m-p/2288268#M61773</link>
      <description>&lt;P&gt;Hi&lt;/P&gt; 
&lt;P&gt;I have a requirement to create a Big Data batch job which gets data from Table A[ id, customer_id, order_id, product_id,dateid]&lt;/P&gt; 
&lt;P&gt;TableB [orderid, orderdate, orderdesc,shippingaddressid,productid,employeeid,posid]&lt;/P&gt; 
&lt;P&gt;My requirement is to get the inner join data from TableA and TableB and whose orderdate is greater than the last orderdate in destination table Table C.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Table C contains the last orderdate inserted and I want the bigdata job to extract all data from Table B whose orderdate is greater than the max(orderdate) TABLEC.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In other words:&lt;/P&gt; 
&lt;P&gt;insert into c&lt;/P&gt; 
&lt;P&gt;select a.*,b*&lt;/P&gt; 
&lt;P&gt;from a inner join b&lt;/P&gt; 
&lt;P&gt;on a.orderid=b.orderid&lt;/P&gt; 
&lt;P&gt;where b.orderdate &amp;gt;(select max(orderdate) from c)&lt;/P&gt; 
&lt;P&gt;The above is an example and does not reflect the actual data model but is similar in terms of setup.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am using a tmap to join a and b but cannot filter how to use tmap to introduce the where clause from table c.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks for your help.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Sam&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 08:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-2-tables-with-a-condition-based-on-max-date-from-the-third/m-p/2288268#M61773</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-17T08:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 tables  with a condition based on max date from the third table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-2-tables-with-a-condition-based-on-max-date-from-the-third/m-p/2288269#M61774</link>
      <description>are you on only one db or did you have multiple sources?&lt;BR /&gt;began by creating a hashmap with max(date) of c then add it on your tmap.</description>
      <pubDate>Mon, 17 Jun 2019 08:49:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-2-tables-with-a-condition-based-on-max-date-from-the-third/m-p/2288269#M61774</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-06-17T08:49:37Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 tables  with a condition based on max date from the third table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-2-tables-with-a-condition-based-on-max-date-from-the-third/m-p/2288270#M61775</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Its on the same db, but its a big data job.tHashMap is not available in the BIGData pallette or I couldnt find.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response though.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 09:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-2-tables-with-a-condition-based-on-max-date-from-the-third/m-p/2288270#M61775</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-17T09:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 tables  with a condition based on max date from the third table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-2-tables-with-a-condition-based-on-max-date-from-the-third/m-p/2288271#M61776</link>
      <description>if all your data are on the same db it will be quickest to us sql or plsql proc.&lt;BR /&gt;on tqlend you can activate thmap on:&lt;BR /&gt;file&lt;BR /&gt;edit project property&lt;BR /&gt;Designer&lt;BR /&gt;Settings&lt;BR /&gt;TEchnical&lt;BR /&gt;&lt;BR /&gt;you can also use file or table on your db&lt;BR /&gt;</description>
      <pubDate>Mon, 17 Jun 2019 12:26:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-2-tables-with-a-condition-based-on-max-date-from-the-third/m-p/2288271#M61776</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2019-06-17T12:26:28Z</dc:date>
    </item>
  </channel>
</rss>

