<?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: finding matches between CSV and table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/finding-matches-between-CSV-and-table/m-p/2322070#M92047</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Nikhil Thampi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I updated the question, I hope it is clear now.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2019 20:42:08 GMT</pubDate>
    <dc:creator>DM_J</dc:creator>
    <dc:date>2019-07-08T20:42:08Z</dc:date>
    <item>
      <title>finding matches between CSV and table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/finding-matches-between-CSV-and-table/m-p/2322068#M92045</link>
      <description>&lt;P&gt;There is a CSV file with the data of people who changed there name:&amp;nbsp;id, former_name, number, first_name, last_name&lt;/P&gt; 
&lt;P&gt;The former_name can be first or last name.&lt;/P&gt; 
&lt;P&gt;Here is a sample of data:&lt;/P&gt; 
&lt;P&gt;id former_name number first_name last_name&lt;/P&gt; 
&lt;TABLE&gt; 
 &lt;TBODY&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;12c-25h&lt;/TD&gt; 
   &lt;TD&gt;Jane&lt;/TD&gt; 
   &lt;TD&gt;20030617&lt;/TD&gt; 
   &lt;TD&gt;Jill&lt;/TD&gt; 
   &lt;TD&gt;Smith&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;12c-25h&lt;/TD&gt; 
   &lt;TD&gt;Do&lt;/TD&gt; 
   &lt;TD&gt;20030617&lt;/TD&gt; 
   &lt;TD&gt;Jill&lt;/TD&gt; 
   &lt;TD&gt;Smith&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;12c-35er&lt;/TD&gt; 
   &lt;TD&gt;Jill&lt;/TD&gt; 
   &lt;TD&gt;19940405&lt;/TD&gt; 
   &lt;TD&gt;Eve&lt;/TD&gt; 
   &lt;TD&gt;Jackson&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;12c-25h&lt;/TD&gt; 
   &lt;TD&gt;MaryAnn&lt;/TD&gt; 
   &lt;TD&gt;20150812&lt;/TD&gt; 
   &lt;TD&gt;Mary&lt;/TD&gt; 
   &lt;TD&gt;Jackson&lt;/TD&gt; 
  &lt;/TR&gt; 
  &lt;TR&gt; 
   &lt;TD&gt;w2-e45ce&lt;/TD&gt; 
   &lt;TD&gt;Jill&lt;/TD&gt; 
   &lt;TD&gt;19990423&lt;/TD&gt; 
   &lt;TD&gt;Eve&lt;/TD&gt; 
   &lt;TD&gt;Randal&lt;/TD&gt; 
  &lt;/TR&gt; 
 &lt;/TBODY&gt; 
&lt;/TABLE&gt; 
&lt;P&gt;Which Jane Do changed her first name first then changed her last name.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;There is&amp;nbsp; a table:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Person: person_id, first_name, last_name, number, ...&lt;/P&gt; 
&lt;P&gt;person_id is created&amp;nbsp; by first_name + last_name +number&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I want to check if the person in the CSV file exists in the table or not.&lt;/P&gt; 
&lt;P&gt;As the id is the combination of the person's first and last name,&lt;/P&gt; 
&lt;OL&gt; 
 &lt;LI&gt;Condition 1: I want to check if the old name and number exist in the id or not: id.contains(old_name) &amp;amp;&amp;amp; id.contains(number)&lt;/LI&gt; 
 &lt;LI&gt;Condition2: if the result of 1 is true I want to check two combinations: person.firstname+csv.oldname+csv.number with id and&amp;nbsp;csv.oldname+pesron.lastname+csv.number&lt;/LI&gt; 
&lt;/OL&gt; 
&lt;P&gt;If the result of condition 1 is false or the result of condition 2 is more than one record or any record I assume the person in the csv is a new person. So I will add her to the table&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;But if the result of condition 2 is only one record, I will update the row in the Person table.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I hope it is clear now.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Appreciate any help.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:21:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/finding-matches-between-CSV-and-table/m-p/2322068#M92045</guid>
      <dc:creator>DM_J</dc:creator>
      <dc:date>2024-11-16T05:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: finding matches between CSV and table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/finding-matches-between-CSV-and-table/m-p/2322069#M92046</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Unfortunately I am confused by your requirement &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; You had specified that there is a Person table and row1 is from Person table and row2 is from csv after Talend processing. Why are you joining both rows?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Could you please repharse your query with example for both datasets and the expected output datasets for each of your query? Then we will get more idea about your requirement.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Warm Regards,&lt;BR /&gt;Nikhil Thampi&lt;/P&gt; 
&lt;P&gt;Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 04:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/finding-matches-between-CSV-and-table/m-p/2322069#M92046</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-08T04:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: finding matches between CSV and table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/finding-matches-between-CSV-and-table/m-p/2322070#M92047</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Nikhil Thampi,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I updated the question, I hope it is clear now.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2019 20:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/finding-matches-between-CSV-and-table/m-p/2322070#M92047</guid>
      <dc:creator>DM_J</dc:creator>
      <dc:date>2019-07-08T20:42:08Z</dc:date>
    </item>
  </channel>
</rss>

