<?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 two tables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245104#M31056</link>
    <description>Hello, 
&lt;BR /&gt;did not understand your solution and the screenshot is tiny, cannot read anything out of it 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;The image upload function is below the text box when you post a reply, it shows "image upload" and a combo with the number of slots for the upload. 
&lt;BR /&gt;Anyhow, I am glad you found a solution 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Note : from the tiny screenshot you posted it seems you are using mysql tables (or anyway a rdbms). 
&lt;BR /&gt;If so, you could use a ELT approach (use tELTmySQLInput / tELTMap ) . There you have the "full louter join" option. 
&lt;BR /&gt;This would make your job much simpler (provided all the tables are in the same server). 
&lt;BR /&gt;Bye 
&lt;BR /&gt;Francesco</description>
    <pubDate>Sun, 29 May 2011 13:12:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-05-29T13:12:16Z</dc:date>
    <item>
      <title>Join two tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245100#M31052</link>
      <description>Hello, and thanks for you time to anyone kind enough to help me.
&lt;BR /&gt;I have two SQL tables like these:
&lt;BR /&gt;year | month | quantity1 year | month | quantity2
&lt;BR /&gt;---------------------------- ----------------------------
&lt;BR /&gt;2010 | 01 | 5 2010 | 02 | 7
&lt;BR /&gt;2010 | 06 | 10 2010 | 07 | 6
&lt;BR /&gt;2010 | 10 | 8 2010 | 10 | 10
&lt;BR /&gt;and I need a single table like this:
&lt;BR /&gt;year | month | quantity1 | quantity2
&lt;BR /&gt;------------------------------------------
&lt;BR /&gt;2010 | 01 | 5 | 0
&lt;BR /&gt;2010 | 02 | 0 | 7
&lt;BR /&gt;2010 | 06 | 10 | 0
&lt;BR /&gt;2010 | 07 | 0 | 6
&lt;BR /&gt;2010 | 10 | 8 | 10
&lt;BR /&gt;I tried tMap and tUnite but I can't find a way. Can you give me a hand? Thanks</description>
      <pubDate>Sat, 16 Nov 2024 12:53:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245100#M31052</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2024-11-16T12:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: Join two tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245101#M31053</link>
      <description>Hello,
&lt;BR /&gt;tMap should do the trick, but you need to 
&lt;BR /&gt;1) Set the join criteria to full outer join
&lt;BR /&gt;2) calculate the keys in the output table (you can use variables in tMap) in a way that if t1.year_id is null then you take t2.year_id (same for month)
&lt;BR /&gt;3) make sure you tag as nullable year_id and month_id in t1 and t2
&lt;BR /&gt;Should be enough
&lt;BR /&gt;Ah, for point 2) you need to use the syntax (t1.year_id == null) ? t2.year_id : t1.year_id
&lt;BR /&gt;
&lt;BR /&gt;Hope it helps
&lt;BR /&gt;Bye
&lt;BR /&gt;Francesco</description>
      <pubDate>Sat, 28 May 2011 17:38:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245101#M31053</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-28T17:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Join two tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245102#M31054</link>
      <description>uhm... to bad I just noticed there is no full outer join option in tMap, so you need to do it with a tunite followed by an aggregation or perform the full outer join in your RDBMS.&lt;BR /&gt;So, back to the tUnite option.&lt;BR /&gt;I used your data and created a job as visible in the attached pic.&lt;BR /&gt;The two tmasps are just used to created a zero column q2 in the first table  and a zero column q1 in the second one</description>
      <pubDate>Sat, 28 May 2011 17:57:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245102#M31054</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-28T17:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: Join two tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245103#M31055</link>
      <description>I really appreciate your help. By the way I found a different way to solve this problem (even if it took a good amount of gray matter 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133049iD780B7DE0116E4D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACJ.png" alt="0683p000009MACJ.png" /&gt;&lt;/span&gt;) 
&lt;BR /&gt;It involves two simmetrical JOINs: left and right. In the screenshot I posted below you can see this method applied to 4 tables in order to have this kind of result: 
&lt;BR /&gt;year | month | qty1 | qty2 | qty3 | qty4 
&lt;BR /&gt;--------------------------------------------- 
&lt;BR /&gt;2010| 01 | 5 | 10 | 0 | 0 
&lt;BR /&gt;2010| 02 | 15 | 0 | 5 | 0 
&lt;BR /&gt;2010| 03 | 0 | 4 | 8 | 5 
&lt;BR /&gt;2010| 04 | 7 | 12 | 4 | 7 
&lt;BR /&gt;2010| 05 | 5 | 16 | 0 | 3 
&lt;BR /&gt;2010| 06 | 0 | 6 | 9 | 0 
&lt;BR /&gt;2010| 07 | 5 | 11 | 0 | 2 
&lt;BR /&gt;...et cetera. Obvioulsy the starting tables are all in the form . Anyhow your method may be simpler so I'll be using both for my purpose. 
&lt;BR /&gt; 
&lt;A href="http://imageshack.us/photo/my-images/163/19937276.jpg/" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;IMG src="https://community.qlik.com/" /&gt;&lt;/A&gt; 
&lt;BR /&gt;(sorry for the imageshack post, but I can't find the upload image function)</description>
      <pubDate>Sun, 29 May 2011 08:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245103#M31055</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-05-29T08:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Join two tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245104#M31056</link>
      <description>Hello, 
&lt;BR /&gt;did not understand your solution and the screenshot is tiny, cannot read anything out of it 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;The image upload function is below the text box when you post a reply, it shows "image upload" and a combo with the number of slots for the upload. 
&lt;BR /&gt;Anyhow, I am glad you found a solution 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Note : from the tiny screenshot you posted it seems you are using mysql tables (or anyway a rdbms). 
&lt;BR /&gt;If so, you could use a ELT approach (use tELTmySQLInput / tELTMap ) . There you have the "full louter join" option. 
&lt;BR /&gt;This would make your job much simpler (provided all the tables are in the same server). 
&lt;BR /&gt;Bye 
&lt;BR /&gt;Francesco</description>
      <pubDate>Sun, 29 May 2011 13:12:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245104#M31056</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-29T13:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Join two tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245105#M31057</link>
      <description>You can solve the problem avoiding joins. 
&lt;BR /&gt;Just unite the two flows in a tUnite ( but before that remember to add a "logical" additional qty field in the source schemas defaulting to zero, in order to have two input flows with two quantity fields, one always defaulting to zero ). 
&lt;BR /&gt;Then just use taggregate to sum grouping by year and month.</description>
      <pubDate>Sun, 29 May 2011 15:43:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245105#M31057</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-05-29T15:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Join two tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245106#M31058</link>
      <description>Yes, I found this same solution (the one right above this post) too today, but I didn't use any tUnite, I just used 4 queries (I had 2 more tables) and 3 UNION. Of course in every query there was one attribute field with the real data and 3 with "0 AS abcd" and for each query i shifted the data field right one place. 
&lt;BR /&gt;In TOS I just used a tAggregateRow to group by the month field and I was done. 
&lt;BR /&gt;Thanks anyway for your help, and if I can ask another question I just want to know how to do this: 
&lt;BR /&gt;Attr1 | Attr2 
&lt;BR /&gt;------+------ AAA | BBB | CCC 
&lt;BR /&gt;AAA | 123 ====&amp;gt; ------+-----+----- 
&lt;BR /&gt;BBB | 456 123 | 456 | 789 
&lt;BR /&gt;CCC | 789 
&lt;BR /&gt;or else to just multiply the first column of a table for the first value af Attr2 (123), the second column for the second value (456), the third column for the third value, and so on. 
&lt;BR /&gt;PS. I can't find the uplad image button. Does it apper only if you are a registered user? 
&lt;BR /&gt;Bye 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sun, 29 May 2011 22:13:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245106#M31058</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2011-05-29T22:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: Join two tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245107#M31059</link>
      <description>To upload image don't use the Quick Post box at the bottom of the topic, instead click the Post Reply link at the right above that box.</description>
      <pubDate>Fri, 03 Jun 2011 03:10:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-two-tables/m-p/2245107#M31059</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2011-06-03T03:10:14Z</dc:date>
    </item>
  </channel>
</rss>

