<?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 table with thousand columns in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Join-2-table-with-thousand-columns/m-p/2295830#M68554</link>
    <description>&lt;P&gt;Wow! 1000 columns! Are table A and B in the same database? If so, I would recommend joining your t{db}Input component and only bring in the data you need.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2017 11:30:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-08-11T11:30:27Z</dc:date>
    <item>
      <title>Join 2 table with thousand columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-2-table-with-thousand-columns/m-p/2295829#M68553</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;I'm new to Talend and I have a question:&lt;BR /&gt;I have table A with 1000 column, table B have a column name utcdate&lt;/P&gt;&lt;P&gt;I want to join 2 table on 2 key column and with condition that utcdate column in table B is in a range.&lt;/P&gt;&lt;P&gt;How to join it with tMap ?&lt;BR /&gt;Note that table A have 1000 column so that I have to use 3 tPostgresqlInput components to get data, and one other tPostgesqlInput for table B.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 11:27:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-2-table-with-thousand-columns/m-p/2295829#M68553</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-11T11:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 table with thousand columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-2-table-with-thousand-columns/m-p/2295830#M68554</link>
      <description>&lt;P&gt;Wow! 1000 columns! Are table A and B in the same database? If so, I would recommend joining your t{db}Input component and only bring in the data you need.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 11:30:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-2-table-with-thousand-columns/m-p/2295830#M68554</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-11T11:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 table with thousand columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-2-table-with-thousand-columns/m-p/2295831#M68555</link>
      <description>Thank you but i don't get any solution with your comment, can you explain your idea ?</description>
      <pubDate>Fri, 11 Aug 2017 11:47:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-2-table-with-thousand-columns/m-p/2295831#M68555</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-11T11:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 table with thousand columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-2-table-with-thousand-columns/m-p/2295832#M68556</link>
      <description>&lt;P&gt;Sorry, my suggestion was that you write a SQL query joining the 2 tables (assuming they are both in the same database) and handle the date range logic there. The point of my suggestion was that ....&lt;/P&gt;
&lt;P&gt;1) You do not want to be dealing with 1000 columns unless you need every single one, in your job&lt;/P&gt;
&lt;P&gt;2) The memory overhead of dealing with that much data will lead to issues further down the line&lt;/P&gt;
&lt;P&gt;3) Since your database is arguably going to be one of your more powerful systems (and it is meant for querying) it makes sense to filter/join your data there and send it to Talend for further processing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was kind of preempting future issues you will have with so much data AND assuming you could probably perform the join logic easier in SQL&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 12:12:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-2-table-with-thousand-columns/m-p/2295832#M68556</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-11T12:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 table with thousand columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-2-table-with-thousand-columns/m-p/2295833#M68557</link>
      <description>&lt;P&gt;as DBA, I always sure - 1000 columns it always wrong design&lt;/P&gt; 
&lt;P&gt;plus I absolutely agree with&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;- this better to do inside database, with plain SQL&lt;/P&gt; 
&lt;P&gt;in this case - You do not need Talend at all &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; or just could use single component tPostgreSQLRow with SQL code&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;but if accept this situation as fact, You also could use a trick:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-08-12 at 7.10.19 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvho.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134134i9427FA38CD5CAE63/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvho.png" alt="0683p000009Lvho.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-08-12 at 6.58.30 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvqO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157078iB2FC35C13B44E1EB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvqO.png" alt="0683p000009LvqO.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;as You can see - we have 2 tables with 10 columns, and we want UPDATE column c20 in table 1 for all rows matched by column c9 with value from Table 2 (matched column c9, values from column c20)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;we do not need for this define all columns in Talend, we define in tPostgreSQLInput only necessary columns:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-08-12 at 6.58.46 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvVh.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149116iEAAC7EDE2490CEB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvVh.png" alt="0683p000009LvVh.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-08-12 at 7.04.44 PM.png" style="width: 813px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvqi.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130301i862ED2E1DF0613D1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvqi.png" alt="0683p000009Lvqi.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;than in tMap use as usual INNER JOIN&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-08-12 at 6.58.56 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvmc.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140618i2A2EB16CBCDBD0B9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvmc.png" alt="0683p000009Lvmc.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;same for output flow we define only key column + target column&lt;/P&gt; 
&lt;P&gt;and we use Advanced tab - use Filed option&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-08-12 at 6.59.13 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lv6H.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144804iE07BFB8AC65C729B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lv6H.png" alt="0683p000009Lv6H.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-08-12 at 6.59.21 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LvW0.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157409i2C5C47943D198614/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LvW0.png" alt="0683p000009LvW0.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;result - as expected:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2017-08-12 at 7.10.32 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lvpb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155747i71C0598942F5E208/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lvpb.png" alt="0683p000009Lvpb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;in case of "Use Filed option" Talend generate SQL code similar for what You can run manually&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;PRE&gt;UPDATE Table1 SET c20 = value WHERE id = value&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Aug 2017 08:11:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-2-table-with-thousand-columns/m-p/2295833#M68557</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-08-12T08:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Join 2 table with thousand columns</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Join-2-table-with-thousand-columns/m-p/2295834#M68558</link>
      <description>I got it, thanks very much, both of you 
&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;</description>
      <pubDate>Mon, 14 Aug 2017 02:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Join-2-table-with-thousand-columns/m-p/2295834#M68558</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-08-14T02:46:16Z</dc:date>
    </item>
  </channel>
</rss>

