<?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: tMap join 'like' in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342468#M110331</link>
    <description>&lt;P&gt;For adding more details, in the db table of row21 I can have&lt;/P&gt;&lt;P&gt;id, code&lt;/P&gt;&lt;P&gt;1, C01&lt;/P&gt;&lt;P&gt;2, C01&lt;/P&gt;&lt;P&gt;3, C01-01&lt;/P&gt;&lt;P&gt;4, C01-01-11&lt;/P&gt;&lt;P&gt;So in from the input csv file I have C01 or C01-01 or C01-01-11 they all should go to the output file (as many time as they are in the input csv file).&lt;/P&gt;</description>
    <pubDate>Sat, 08 May 2021 09:41:30 GMT</pubDate>
    <dc:creator>solquest</dc:creator>
    <dc:date>2021-05-08T09:41:30Z</dc:date>
    <item>
      <title>tMap join 'like'</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342467#M110330</link>
      <description>&lt;P&gt;Hey there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a csv file (file_1) and I need to write its data on another csv file only if the code (example 'C01') in file_1 is contained in a field (example 'C01-02-03') of a db table.&lt;/P&gt;&lt;P&gt;I've set tDBInput as lookup for TMap and I've found that for using a 'like' operator, in tMap I shouldn't set key column in my lookup while using lookup filter instead.&lt;/P&gt;&lt;P&gt;So in lookup expression filder I've set &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;row21.category.startsWith(row18.code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where row21 is the lookup and row18 the input file.&lt;/P&gt;&lt;P&gt;In Match model I'd set 'First match' -I only want to know if that code is present, but when I set it I get the message "The lookup table should have at least one key expression filled" and when I save it, it gets changed to 'All rows'.&lt;/P&gt;&lt;P&gt;But this means that in the output csv file I'm getting tons of data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How should I manage this?&lt;/P&gt;&lt;P&gt;Thanks. &lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:10:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342467#M110330</guid>
      <dc:creator>solquest</dc:creator>
      <dc:date>2024-11-16T00:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: tMap join 'like'</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342468#M110331</link>
      <description>&lt;P&gt;For adding more details, in the db table of row21 I can have&lt;/P&gt;&lt;P&gt;id, code&lt;/P&gt;&lt;P&gt;1, C01&lt;/P&gt;&lt;P&gt;2, C01&lt;/P&gt;&lt;P&gt;3, C01-01&lt;/P&gt;&lt;P&gt;4, C01-01-11&lt;/P&gt;&lt;P&gt;So in from the input csv file I have C01 or C01-01 or C01-01-11 they all should go to the output file (as many time as they are in the input csv file).&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2021 09:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342468#M110331</guid>
      <dc:creator>solquest</dc:creator>
      <dc:date>2021-05-08T09:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: tMap join 'like'</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342469#M110332</link>
      <description>&lt;P&gt;HI, so it cant work you have to define at least one lookup column, if you try to filter on the same file use your filter expression in the output of the tMap and don't use a join.&lt;/P&gt;&lt;P&gt;Send me Love and Kudos&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 07:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342469#M110332</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-05-10T07:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: tMap join 'like'</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342470#M110333</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I'm not trying to filter on the same file, I want to filter data on input file depending if they are (but not on exact match, see below) on a db table.&lt;/P&gt;&lt;P&gt;In the input file I have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;C01&lt;/P&gt;&lt;P&gt;C01-11&lt;/P&gt;&lt;P&gt;C01-11-111&lt;/P&gt;&lt;P&gt;C02&lt;/P&gt;&lt;P&gt;C02-11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while in db table I have&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;product; category&lt;/P&gt;&lt;P&gt;1; C01-11-111&lt;/P&gt;&lt;P&gt;2; C01-11-111&lt;/P&gt;&lt;P&gt;3; C01-11-111&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I want to output only the records that have db_table.category.startsWith(input_file.code).&lt;/P&gt;&lt;P&gt;So for the example, the output should be&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;C01&lt;/P&gt;&lt;P&gt;C01-11&lt;/P&gt;&lt;P&gt;C01-11-111&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't join input_file.code = db_table.category, cause in this way I'd miss C01 and C01-11&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I do it?&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 09:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342470#M110333</guid>
      <dc:creator>solquest</dc:creator>
      <dc:date>2021-05-10T09:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: tMap join 'like'</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342471#M110334</link>
      <description>&lt;P&gt;I think , First you read the file with CODE then you iterate with tFlowToIterate (to stock the code in a globalVar) and for each iteration you read the db with the globalVar in the query :&lt;/P&gt;&lt;P&gt; "select * from your table where category like'" + (String)globalMap.get(your global var) + "%'"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and you append all the result in a buffer or a file.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 10:09:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342471#M110334</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-05-10T10:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: tMap join 'like'</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342472#M110335</link>
      <description>&lt;P&gt;hi @solquest solquest​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;try using attached solution.&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000F6SKkAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134595i210259673DB36690/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000F6SKkAAN.png" alt="0695b00000F6SKkAAN.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 07:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342472#M110335</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2021-05-12T07:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: tMap join 'like'</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342473#M110336</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;That one is not working, cause in row1.C_ODE I can have C01 while in row2.C_ODE_1 I have C01-01-01 and that C01 should go in the output.&lt;/P&gt;&lt;P&gt;I tried writing &lt;/P&gt;&lt;P&gt;row2.C_ODE_1.startsWith(row1.C_ODE) ? row2.C_ODE_1 : "0"&lt;/P&gt;&lt;P&gt;in the expression key for row2.C_ODE_1, but seems I can't use row2.C_ODE_1 for joining row2.C_ODE_1...&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 12:48:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342473#M110336</guid>
      <dc:creator>solquest</dc:creator>
      <dc:date>2021-05-12T12:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: tMap join 'like'</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342474#M110337</link>
      <description>&lt;P&gt;@solquest, try my solution with the tflowtoiterate and the globalVar in the sql query.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 12:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342474#M110337</guid>
      <dc:creator>gjeremy1617088143</dc:creator>
      <dc:date>2021-05-12T12:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: tMap join 'like'</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342475#M110338</link>
      <description>&lt;P&gt;@solquest solquest​&amp;nbsp;,try to contains function instead of startsWith and let me know.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 04:39:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342475#M110338</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2021-05-13T04:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: tMap join 'like'</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342476#M110339</link>
      <description>&lt;P&gt;Just for my understanding :&lt;/P&gt;&lt;P&gt;In row1.C_ODE data can be like &lt;/P&gt;&lt;P&gt;C01&lt;/P&gt;&lt;P&gt;C02&lt;/P&gt;&lt;P&gt;and in row2.C_ODE data can be like&lt;/P&gt;&lt;P&gt;C01-0210, "Some data"&lt;/P&gt;&lt;P&gt;C02212, "other data"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you want if row2.C_ODE starts with "C01", then output the row1.C_ODE  which will look like below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C01, "Some data"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is true then my code is doing the same thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the output you just need to select the row1.C_ODE data link&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 08:47:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tMap-join-like/m-p/2342476#M110339</guid>
      <dc:creator>Prakhar1</dc:creator>
      <dc:date>2021-05-13T08:47:09Z</dc:date>
    </item>
  </channel>
</rss>

