<?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] Fetch LastInsertID Amazon Aurora DB &amp; Insert into another table in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Fetch-LastInsertID-Amazon-Aurora-DB-Insert-into-another/m-p/2288953#M62372</link>
    <description>Carlos, How we will get to know which portfolioID will be mapped with which Account Row data?&lt;BR /&gt;&lt;BR /&gt;As for one portfolio there can be multiple Accounts. So we can't made lookup with Portfolio Name only.</description>
    <pubDate>Wed, 15 Jun 2016 07:43:38 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-06-15T07:43:38Z</dc:date>
    <item>
      <title>[resolved] Fetch LastInsertID Amazon Aurora DB &amp; Insert into another table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Fetch-LastInsertID-Amazon-Aurora-DB-Insert-into-another/m-p/2288949#M62368</link>
      <description>&lt;P&gt;Hi All,&lt;BR /&gt;In my one Talend Job, I requires below flow:&lt;BR /&gt;1. tmap1 output few columns inserted in Amazon Aurora DB - Done&lt;BR /&gt;2. Fetch last inserted id for the same- Pending&lt;BR /&gt;3. Map last inserted id with rest of columns available in tmap1 component. This has to be done for each row inserted. - Pending&lt;BR /&gt;I am done with first step, but did not know how to proceed with second and third step. All work to be done on Amazon Aurora Db&lt;BR /&gt;Please help &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;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 16:06:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Fetch-LastInsertID-Amazon-Aurora-DB-Insert-into-another/m-p/2288949#M62368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-14T16:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Fetch LastInsertID Amazon Aurora DB &amp; Insert into another table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Fetch-LastInsertID-Amazon-Aurora-DB-Insert-into-another/m-p/2288950#M62369</link>
      <description>Hello,
&lt;BR /&gt;As there's not the Mysql connector to retrieve the last insert id, you can :
&lt;BR /&gt;[list=*]
&lt;BR /&gt;
&lt;LI&gt;in the db, insert inserted' id by a trigger in a temp table if it exists in Amazon Aurora and then retrieve it in a job,&lt;/LI&gt;
&lt;BR /&gt;[list=*]
&lt;BR /&gt;
&lt;LI&gt;in Talend, make two workflows in your job. One to insert, second to catch all columns used in the insert to make a lookup in a second job into a csv file. Then in your second job just lookup with the table to retrieve the id inserted. Not beautiful development&amp;nbsp; but it works for me in Postgresql.&lt;/LI&gt;
&lt;BR /&gt;
&lt;BR /&gt;HTH</description>
      <pubDate>Tue, 14 Jun 2016 16:48:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Fetch-LastInsertID-Amazon-Aurora-DB-Insert-into-another/m-p/2288950#M62369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-14T16:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Fetch LastInsertID Amazon Aurora DB &amp; Insert into another table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Fetch-LastInsertID-Amazon-Aurora-DB-Insert-into-another/m-p/2288951#M62370</link>
      <description>Thanks Carlos for replying, but to be more informative here:
&lt;BR /&gt;1. tmap1 component contains data for two tables ( Account&amp;nbsp;&amp;amp; Portfolio).
&lt;BR /&gt;2. tmap1 for Portfolio table insertion it contains Portfolio Name which will be inserted in Portfolio table and a new ID will be generated which is auto-incremented column
&lt;BR /&gt;3. Fetch that portfolioID which is a auto-increment column
&lt;BR /&gt;3. Then map portfolioID&amp;nbsp;key with rest of columns (Account data)&amp;nbsp;available in tmap1 component as foreign key column and then insert these columns with&amp;nbsp;portfolioID key in Account table.
&lt;BR /&gt;Hope this makes requirement more clear.</description>
      <pubDate>Wed, 15 Jun 2016 06:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Fetch-LastInsertID-Amazon-Aurora-DB-Insert-into-another/m-p/2288951#M62370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-15T06:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Fetch LastInsertID Amazon Aurora DB &amp; Insert into another table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Fetch-LastInsertID-Amazon-Aurora-DB-Insert-into-another/m-p/2288952#M62371</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;That's what i said.&lt;BR /&gt;[list=*]&lt;BR /&gt;&lt;LI&gt;in your 1st job, do your insertions to Portfolio table and to a csv file.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;in your 2nd job, make a lookup with a tMap to retrieve the Portfolio id's row inserted from 1st job with data from the csv. Then you can insert into the Account table.&lt;/LI&gt;&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Wed, 15 Jun 2016 07:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Fetch-LastInsertID-Amazon-Aurora-DB-Insert-into-another/m-p/2288952#M62371</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-15T07:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Fetch LastInsertID Amazon Aurora DB &amp; Insert into another table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Fetch-LastInsertID-Amazon-Aurora-DB-Insert-into-another/m-p/2288953#M62372</link>
      <description>Carlos, How we will get to know which portfolioID will be mapped with which Account Row data?&lt;BR /&gt;&lt;BR /&gt;As for one portfolio there can be multiple Accounts. So we can't made lookup with Portfolio Name only.</description>
      <pubDate>Wed, 15 Jun 2016 07:43:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Fetch-LastInsertID-Amazon-Aurora-DB-Insert-into-another/m-p/2288953#M62372</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-15T07:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Fetch LastInsertID Amazon Aurora DB &amp; Insert into another table</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Fetch-LastInsertID-Amazon-Aurora-DB-Insert-into-another/m-p/2288954#M62373</link>
      <description>One of my colleague was able to do this by following way: 
&lt;BR /&gt; 
&lt;BR /&gt;1. Used tsequence generator after fetching Max Portfolio ID from table and generated all Portfolio IDs in Talend instead of in Database Table 
&lt;BR /&gt;2. Then Mapped those genrated id's with Account Table using tMap 
&lt;BR /&gt;3. Inserted whole data into db tables. 
&lt;BR /&gt; 
&lt;BR /&gt;Thanks Carlos for your help. 
&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;</description>
      <pubDate>Fri, 17 Jun 2016 09:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Fetch-LastInsertID-Amazon-Aurora-DB-Insert-into-another/m-p/2288954#M62373</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-17T09:09:34Z</dc:date>
    </item>
  </channel>
</rss>

