<?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 Talend join two files by column id and create a new entry in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-join-two-files-by-column-id-and-create-a-new-entry/m-p/2354405#M120386</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my first post here in talend community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;productsFile:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;product_id&lt;/TD&gt;&lt;TD&gt;target&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Maxplore_4G&lt;/TD&gt;&lt;TD&gt;ALL&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;discountsFile:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;discount_id&lt;/TD&gt;&lt;TD&gt;product_id&lt;/TD&gt;&lt;TD&gt;target&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Maxplore_4G_2_55000_A&lt;/TD&gt;&lt;TD&gt;Maxplore_4G&lt;/TD&gt;&lt;TD&gt;|1|2|3|4|5|6|7|8|9|10|11|12|&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Maxplore_4G_2_55000_B&lt;/TD&gt;&lt;TD&gt;Maxplore_4G&lt;/TD&gt;&lt;TD&gt;|1|2|3|4|5|6|7|8|9|10|11|12|&lt;/TD&gt;&lt;/TR&gt;&l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&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically what i want is for each product id in productsFile join&amp;nbsp;discountsFile on discountsFile and also create a new entry without discountId for every distinct productId in productsFile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to do the join using a regular tMap but i have no idea on how to create that empty discountId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 07:57:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T07:57:35Z</dc:date>
    <item>
      <title>Talend join two files by column id and create a new entry</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-join-two-files-by-column-id-and-create-a-new-entry/m-p/2354405#M120386</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my first post here in talend community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;productsFile:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;product_id&lt;/TD&gt;&lt;TD&gt;target&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Maxplore_4G&lt;/TD&gt;&lt;TD&gt;ALL&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;discountsFile:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;discount_id&lt;/TD&gt;&lt;TD&gt;product_id&lt;/TD&gt;&lt;TD&gt;target&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Maxplore_4G_2_55000_A&lt;/TD&gt;&lt;TD&gt;Maxplore_4G&lt;/TD&gt;&lt;TD&gt;|1|2|3|4|5|6|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;&lt;TD&gt;|1|&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Maxplore_4G&lt;/TD&gt;&lt;TD&gt;Maxplore_4G_3_90000_R&lt;/TD&gt;&lt;TD&gt;ALL&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically what i want is for each product id in productsFile join&amp;nbsp;discountsFile on discountsFile and also create a new entry without discountId for every distinct productId in productsFile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to do the join using a regular tMap but i have no idea on how to create that empty discountId.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 07:57:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-join-two-files-by-column-id-and-create-a-new-entry/m-p/2354405#M120386</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T07:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Talend join two files by column id and create a new entry</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-join-two-files-by-column-id-and-create-a-new-entry/m-p/2354406#M120387</link>
      <description>&lt;P&gt;HI Are you looking for the following output?&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Products.PNG" style="width: 838px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzBz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138457i0843B48AD3569FBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzBz.png" alt="0683p000009LzBz.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;tMap used to join product and discount files to get only discounts available in product table and by using unite union the data product and discounts.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 22:20:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-join-two-files-by-column-id-and-create-a-new-entry/m-p/2354406#M120387</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-07-16T22:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: Talend join two files by column id and create a new entry</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-join-two-files-by-column-id-and-create-a-new-entry/m-p/2354407#M120388</link>
      <description>&lt;P&gt;It's almost there &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;/P&gt; 
&lt;P&gt;The flow should work based on productId from productsFile.&lt;/P&gt; 
&lt;P&gt;so for each productId in productsFile we need to go find a match in discountsFile , not the other way.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I managed to fix the issue by changing you solution&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="Capture1.PNG" style="width: 724px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzI1.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145915i9B2DC6A3CD15688A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzI1.png" alt="0683p000009LzI1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.PNG" style="width: 556px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lz7E.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137655iEC33C697F35DDD97/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lz7E.png" alt="0683p000009Lz7E.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 23:13:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-join-two-files-by-column-id-and-create-a-new-entry/m-p/2354407#M120388</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-07-16T23:13:22Z</dc:date>
    </item>
  </channel>
</rss>

