<?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: How to split 1 table on 2 table with foreign key ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-1-table-on-2-table-with-foreign-key/m-p/2347310#M114585</link>
    <description>From your post, &amp;nbsp;@source is people table, @target are people_1 and title table &amp;nbsp;(two table existed on @target) . &amp;nbsp;
&lt;BR /&gt;This is a simple way , test on PostgresPlus :&amp;nbsp;
&lt;BR /&gt;1/ insert into title table by using tUniqRow on "title" column of people table&amp;nbsp;
&lt;BR /&gt;2/ insert into people_1 table by using tMap + look up title table
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://community.talend.com/legacyfs/online/59858/002.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MH9z.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135568i5B5E33AC849969B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MH9z.png" alt="0683p000009MH9z.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;Tutorial:&amp;nbsp;
&lt;BR /&gt;+&amp;nbsp;
&lt;A href="https://www.talendforge.org/tutorials/menu.php" rel="nofollow noopener noreferrer"&gt;https://www.talendforge.org/tutorials/menu.php&lt;/A&gt;
&lt;BR /&gt;+&amp;nbsp;
&lt;A href="http://www.talendbyexample.com/talend-tmap-component-reference.html" rel="nofollow noopener noreferrer"&gt;http://www.talendbyexample.com/talend-tmap-component-reference.html&lt;/A&gt;
&lt;BR /&gt;+&amp;nbsp;
&lt;A href="http://www.talendbyexample.com/talend-tmap-component-joins.html" rel="nofollow noopener noreferrer"&gt;http://www.talendbyexample.com/talend-tmap-component-joins.html&lt;/A&gt;&amp;nbsp;
&lt;BR /&gt;
&lt;BR /&gt;Hope this help .</description>
    <pubDate>Wed, 09 Mar 2016 02:26:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-09T02:26:21Z</dc:date>
    <item>
      <title>How to split 1 table on 2 table with foreign key ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-1-table-on-2-table-with-foreign-key/m-p/2347309#M114584</link>
      <description>&lt;P&gt;Hi !&lt;BR /&gt;I have a database where i have for example a table People with different column : &lt;BR /&gt;- id&lt;BR /&gt;- name&lt;BR /&gt;- age&lt;BR /&gt;- title&lt;BR /&gt;&lt;BR /&gt;I picked up the column title to have a table Title (like Mister, Miss, ...) with different title in table People (DISTINCT sql).&lt;BR /&gt;However i would like to have a link between this new table (Title) and the table People (with a foreign key) but i don't know what to use.&lt;BR /&gt;So, if Lucas is a people with Mister as title, i would like his new column (so my foreign key) will be the id of the value mister in the table Title like :&lt;BR /&gt;&lt;I&gt;before &lt;/I&gt;&lt;BR /&gt;&lt;STRONG&gt;TABLE PEOPLE&lt;/STRONG&gt;&lt;BR /&gt;ID&amp;nbsp;&amp;nbsp; NAME&amp;nbsp;&amp;nbsp; AGE&amp;nbsp;&amp;nbsp; TITLE&lt;BR /&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; Lucas&amp;nbsp;&amp;nbsp; 15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mister&lt;BR /&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; Marthe&amp;nbsp; 28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Miss&lt;BR /&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp; Peter&amp;nbsp;&amp;nbsp;&amp;nbsp; 48&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Mister&lt;BR /&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp; Hugo&amp;nbsp;&amp;nbsp;&amp;nbsp; 23 &amp;nbsp; &amp;nbsp; Mister&lt;BR /&gt;&lt;BR /&gt;&lt;I&gt;and have after :&lt;/I&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;TABLE PEOPLE &lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt; TABLE TITLE&lt;/STRONG&gt;&lt;BR /&gt;ID&amp;nbsp;&amp;nbsp; NAME&amp;nbsp;&amp;nbsp; AGE&amp;nbsp;&amp;nbsp; FK_TITLE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ID&amp;nbsp;&amp;nbsp; NAME&lt;BR /&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; Lucas&amp;nbsp;&amp;nbsp; 15&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; Mister&lt;BR /&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; Marthe 28&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2&amp;nbsp;&amp;nbsp; Miss&lt;BR /&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp; Peter&amp;nbsp;&amp;nbsp; 48&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp; Hugo&amp;nbsp;&amp;nbsp; 23&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;&lt;BR /&gt;Which component can i use to do that ? I thought tMap was the component i needed but i didn't how to do that with tMap...&lt;BR /&gt;Can you help me ? &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;PS : I Hope you understood me, my english is not very good&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Wazzouille&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 12:19:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-1-table-on-2-table-with-foreign-key/m-p/2347309#M114584</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-03-08T12:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to split 1 table on 2 table with foreign key ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-1-table-on-2-table-with-foreign-key/m-p/2347310#M114585</link>
      <description>From your post, &amp;nbsp;@source is people table, @target are people_1 and title table &amp;nbsp;(two table existed on @target) . &amp;nbsp;
&lt;BR /&gt;This is a simple way , test on PostgresPlus :&amp;nbsp;
&lt;BR /&gt;1/ insert into title table by using tUniqRow on "title" column of people table&amp;nbsp;
&lt;BR /&gt;2/ insert into people_1 table by using tMap + look up title table
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://community.talend.com/legacyfs/online/59858/002.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MH9z.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135568i5B5E33AC849969B0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MH9z.png" alt="0683p000009MH9z.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;Tutorial:&amp;nbsp;
&lt;BR /&gt;+&amp;nbsp;
&lt;A href="https://www.talendforge.org/tutorials/menu.php" rel="nofollow noopener noreferrer"&gt;https://www.talendforge.org/tutorials/menu.php&lt;/A&gt;
&lt;BR /&gt;+&amp;nbsp;
&lt;A href="http://www.talendbyexample.com/talend-tmap-component-reference.html" rel="nofollow noopener noreferrer"&gt;http://www.talendbyexample.com/talend-tmap-component-reference.html&lt;/A&gt;
&lt;BR /&gt;+&amp;nbsp;
&lt;A href="http://www.talendbyexample.com/talend-tmap-component-joins.html" rel="nofollow noopener noreferrer"&gt;http://www.talendbyexample.com/talend-tmap-component-joins.html&lt;/A&gt;&amp;nbsp;
&lt;BR /&gt;
&lt;BR /&gt;Hope this help .</description>
      <pubDate>Wed, 09 Mar 2016 02:26:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-1-table-on-2-table-with-foreign-key/m-p/2347310#M114585</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-09T02:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to split 1 table on 2 table with foreign key ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-1-table-on-2-table-with-foreign-key/m-p/2347311#M114586</link>
      <description>Hi !&lt;BR /&gt;&lt;BR /&gt;Thanks for reply, i will look at this today ! &lt;BR /&gt;I'll give you news !&lt;BR /&gt;&lt;BR /&gt;Wazzouille</description>
      <pubDate>Wed, 09 Mar 2016 07:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-1-table-on-2-table-with-foreign-key/m-p/2347311#M114586</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-03-09T07:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to split 1 table on 2 table with foreign key ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-1-table-on-2-table-with-foreign-key/m-p/2347312#M114587</link>
      <description>Re !&lt;BR /&gt;&lt;BR /&gt;I did it succesful for the first (fill title) but i didn't know how you do to make the second tMap, how do you look if the tittle is miss or mister and when you know how you do : is Mister ? fk = 1, is Miss ? fk = 2 automatically&lt;BR /&gt;&lt;BR /&gt;&lt;P align="left"&gt;Pending a response from you,&lt;BR /&gt;Wazzouille&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 07:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-1-table-on-2-table-with-foreign-key/m-p/2347312#M114587</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-03-09T07:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to split 1 table on 2 table with foreign key ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-split-1-table-on-2-table-with-foreign-key/m-p/2347313#M114588</link>
      <description>Hi !
&lt;BR /&gt;
&lt;BR /&gt;I think it works finally, i just put a 
&lt;FONT color="#3399cc"&gt;Left Outer Join&lt;/FONT&gt; and i think it worked !
&lt;BR /&gt;
&lt;BR /&gt;Thanks for help, was very easy like à thought but i wasn't sure...
&lt;BR /&gt;
&lt;BR /&gt;Thanks again !
&lt;BR /&gt;
&lt;BR /&gt;Wazzouille</description>
      <pubDate>Wed, 09 Mar 2016 07:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-split-1-table-on-2-table-with-foreign-key/m-p/2347313#M114588</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-03-09T07:48:55Z</dc:date>
    </item>
  </channel>
</rss>

