<?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: double join between two tables in one tMap? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/double-join-between-two-tables-in-one-tMap/m-p/2366949#M130378</link>
    <description>Hi,&lt;BR /&gt;Do the join in the SQL for the input component and map the unified result set in the tMap.  Be sure to use LEFT OUTER JOIN.  Something like&lt;BR /&gt;SELECT b.pki, prescriberID, executorID, d.firstname prescriberFirstname, d_2.firstname executorFirstname&lt;BR /&gt;FROM bill b&lt;BR /&gt;LEFT OUTER JOIN doctors d ON (d.pki=b.prescriberID)&lt;BR /&gt;LEFT OUTER JOIN doctors d_2 ON (d_2.pki=b.executorID)</description>
    <pubDate>Fri, 30 Sep 2011 22:18:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-09-30T22:18:10Z</dc:date>
    <item>
      <title>double join between two tables in one tMap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/double-join-between-two-tables-in-one-tMap/m-p/2366948#M130377</link>
      <description>Hello,&lt;BR /&gt;Is it possible to do a double join between two tables in one tMap?&lt;BR /&gt;Example: &lt;BR /&gt;I have two tables:&lt;BR /&gt;Table bill {pki, prescriberID, executorID)&lt;BR /&gt;Table doctors {pki, firstname, etc...)&lt;BR /&gt;I need to do a join between "bill.prescriberID" and "doctors.pki", and a join between "bill.executorID" and "doctors.pki". &lt;BR /&gt;I could do 2 tMap one after the other but that would require me to load 2 times the doctors table, which degrades performance ...&lt;BR /&gt;Is it possible to make the two joints in one tMap?&lt;BR /&gt;Thank you in advance for your help.</description>
      <pubDate>Sat, 16 Nov 2024 12:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/double-join-between-two-tables-in-one-tMap/m-p/2366948#M130377</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: double join between two tables in one tMap?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/double-join-between-two-tables-in-one-tMap/m-p/2366949#M130378</link>
      <description>Hi,&lt;BR /&gt;Do the join in the SQL for the input component and map the unified result set in the tMap.  Be sure to use LEFT OUTER JOIN.  Something like&lt;BR /&gt;SELECT b.pki, prescriberID, executorID, d.firstname prescriberFirstname, d_2.firstname executorFirstname&lt;BR /&gt;FROM bill b&lt;BR /&gt;LEFT OUTER JOIN doctors d ON (d.pki=b.prescriberID)&lt;BR /&gt;LEFT OUTER JOIN doctors d_2 ON (d_2.pki=b.executorID)</description>
      <pubDate>Fri, 30 Sep 2011 22:18:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/double-join-between-two-tables-in-one-tMap/m-p/2366949#M130378</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-30T22:18:10Z</dc:date>
    </item>
  </channel>
</rss>

