<?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: [resolved] Join two table with condition in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276843#M52809</link>
    <description>Hi Eko, 
&lt;BR /&gt;This would be a lot of screen-shots. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Let me try, 
&lt;BR /&gt;The first sub-jobgoes like this: 
&lt;BR /&gt;1. TABLE_REFERENCE input : to read the reference file 
&lt;BR /&gt;2. tMap2: to extract the range 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBla.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146865iD5E61853232F40B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBla.png" alt="0683p000009MBla.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;3. tHashOutput: to store the output of tMap2 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBt5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156498iCBCFDEE9BC6BE72B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBt5.png" alt="0683p000009MBt5.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Fri, 12 Dec 2014 10:31:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-12-12T10:31:19Z</dc:date>
    <item>
      <title>[resolved] Join two table with condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276839#M52805</link>
      <description>Hi master, 
&lt;BR /&gt;i want to join table Store and table Reference, then create Table Result by adding one more column to table Store as shown below : 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBSe.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128032iCE63C7EDDC50608A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBSe.png" alt="0683p000009MBSe.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;The condition is : 
&lt;BR /&gt;if StoreCode1 match with StoreCode2, and Type1 match with Type2, i need to compare Number and Group Number, if the Number contain in GroupNumber, i will add the Value to ValueResult. 
&lt;BR /&gt; 
&lt;BR /&gt;for example , see row 1 table Store, 
&lt;BR /&gt;the StoreCode "001" and Type "AAA" match with row 1 and row 2 from table Reference. But because Number "1" is between 1-5 (GroupNumber), so i add Value "1" (row 1 from table Reference) to ValueResult. 
&lt;BR /&gt;Can i do this with Talend? 
&lt;BR /&gt;Thanks before.</description>
      <pubDate>Wed, 10 Dec 2014 08:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276839#M52805</guid>
      <dc:creator>orawajar</dc:creator>
      <dc:date>2014-12-10T08:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Join two table with condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276840#M52806</link>
      <description>Hi,&lt;BR /&gt;You can use t&amp;lt;DB&amp;gt;Row component and&amp;nbsp;&lt;FONT size="2"&gt;&lt;FONT face="Calibri"&gt;execute a sql query that meets your "if" condition in it.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 11 Dec 2014 03:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276840#M52806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-11T03:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Join two table with condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276841#M52807</link>
      <description>Hi Eko, 
&lt;BR /&gt;The way I would go about it, is as follows: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBmj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153102iA123B790D2C03BDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBmj.png" alt="0683p000009MBmj.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;1. First, I would extract the limit range from TABLE_REFERENCE as 'low_value' &amp;amp; 'high_value' (extracting them from string "1-5" into integer values 1 &amp;amp; 5, for further comparison). The output of this, I would store in a hash 
&lt;BR /&gt;2. Then perform an inner join of the output in hash with TABLE_STORE on 'store_code' &amp;amp; 'type' keys. 
&lt;BR /&gt;3. Then, check the incoming values from TABLE_STORE with the low &amp;amp; high limit values. If 'number' lies within the range, assign the value from TABLE_REFERENCE, else a zero. 
&lt;BR /&gt;4. In present scenario, since we have 2 range conditions for each unique pair of 'store_code' &amp;amp; 'type', the tMap join would give double the number of input rows from TABLE_STORE. 
&lt;BR /&gt;5. to eliminate redundancies, I used a tAggregateRow component. If required, if the order of records is important in the output, we can use a tSortRow component. 
&lt;BR /&gt;The output I received, is as desired: 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBmO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138056i02609F11BC63EE9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBmO.png" alt="0683p000009MBmO.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I've tried to outline the approach. Hope this helps. 
&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;Let me know if you need further assistance. 
&lt;BR /&gt;MathurM</description>
      <pubDate>Thu, 11 Dec 2014 07:54:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276841#M52807</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-11T07:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Join two table with condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276842#M52808</link>
      <description>Thanks xdshi for your quick answer, im sorry i forgot to tell you that my table is in csv file.&amp;nbsp; if you dont mind i will try mathurm solution first. 
&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;Hi mathurm, Thanks for your solution. i understand the outline but still hard for me to follow your instruction using talend. i am a beginner here. 
&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;.&amp;nbsp; can you please show me the screenshoot of each component's attribute? i will appreciate it so much. 
&lt;BR /&gt;Thank you.</description>
      <pubDate>Fri, 12 Dec 2014 09:40:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276842#M52808</guid>
      <dc:creator>orawajar</dc:creator>
      <dc:date>2014-12-12T09:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Join two table with condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276843#M52809</link>
      <description>Hi Eko, 
&lt;BR /&gt;This would be a lot of screen-shots. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MAB6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158321i00588DF41617C922/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MAB6.png" alt="0683p000009MAB6.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Let me try, 
&lt;BR /&gt;The first sub-jobgoes like this: 
&lt;BR /&gt;1. TABLE_REFERENCE input : to read the reference file 
&lt;BR /&gt;2. tMap2: to extract the range 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBla.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146865iD5E61853232F40B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBla.png" alt="0683p000009MBla.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;3. tHashOutput: to store the output of tMap2 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBt5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156498iCBCFDEE9BC6BE72B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBt5.png" alt="0683p000009MBt5.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 12 Dec 2014 10:31:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276843#M52809</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-12T10:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Join two table with condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276844#M52810</link>
      <description>The 2nd sub-job will be like : 
&lt;BR /&gt;1. TABLE_STORE: input component to read store file 
&lt;BR /&gt;2. tMap_1 : to check the range &amp;amp; assign values accordingly 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBwm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128919i1AC1F8CC54C0D4B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBwm.png" alt="0683p000009MBwm.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;3. tAggregateRow_1 : to eliminate duplicates (which will definitely be present) 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBwr.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145408i77AA3996B92C297D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBwr.png" alt="0683p000009MBwr.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;4. (if required) tSortRow_1 : if the output rows are required to be sorted 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBqz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132332i25A7E23EBF90C3DB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBqz.png" alt="0683p000009MBqz.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;I hope this should help you creating it at your end. 
&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;MathurM</description>
      <pubDate>Fri, 12 Dec 2014 10:55:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276844#M52810</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-12T10:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Join two table with condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276845#M52811</link>
      <description>i am sorry i had much job last week. 
&lt;BR /&gt;Thank you mathurm for your answer. i still working on this. i will tell you if im done or have a problem with this.&amp;nbsp; 
&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;Best regards,</description>
      <pubDate>Mon, 22 Dec 2014 08:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276845#M52811</guid>
      <dc:creator>orawajar</dc:creator>
      <dc:date>2014-12-22T08:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Join two table with condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276846#M52812</link>
      <description>i thought i found a simple way to doing this join. 
&lt;BR /&gt;on tMap_2 i only need to set Match Model to All Matches 
&lt;BR /&gt;and then add filter to TableResult as shown below. 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Thank you brother and sister for your help. problem solved, 
&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; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBww.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/139262iB030FDFF24B7C8C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBww.png" alt="0683p000009MBww.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBwx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128687iCE82326A3359A2AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBwx.png" alt="0683p000009MBwx.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 30 Dec 2014 07:16:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276846#M52812</guid>
      <dc:creator>orawajar</dc:creator>
      <dc:date>2014-12-30T07:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Join two table with condition</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276847#M52813</link>
      <description>Hi&amp;nbsp; orawajar,&lt;BR /&gt;Thanks for sharing your solution with us.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 30 Dec 2014 07:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Join-two-table-with-condition/m-p/2276847#M52813</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-12-30T07:57:20Z</dc:date>
    </item>
  </channel>
</rss>

