<?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: Relational data insert in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285570#M59192</link>
    <description>&lt;P&gt;Dear Mano,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replyimng.&lt;/P&gt;&lt;P&gt;I am doing the same and works fine but, the issue is&lt;/P&gt;&lt;P&gt;job1:&lt;/P&gt;&lt;P&gt;Source -&amp;gt; load only customer id and name into destination customer table "Customer" ( pkey, cusid,...)&lt;/P&gt;&lt;P&gt;job2:&lt;/P&gt;&lt;P&gt;Source -&amp;gt; select only products for cusid inserted from job1 and do rest.&lt;/P&gt;&lt;P&gt;what i want is:&lt;/P&gt;&lt;P&gt;job2 select query let say:&lt;/P&gt;&lt;P&gt;now: select productid from Source -&amp;gt; tmap gives inserted customer cusid and do the lookup&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is happening : the select query take all records and do the lookup and give only related record&lt;/P&gt;&lt;P&gt;but it takes too long&lt;/P&gt;&lt;P&gt;what needs: pass the inserted cusid from job1 to where clause of job2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Apr 2020 05:00:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-04-08T05:00:33Z</dc:date>
    <item>
      <title>Relational data insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285568#M59190</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;looking for best possible approaches for the below scenario.&lt;/P&gt;&lt;P&gt;I have one source contains denormalized data like ( customerid, prouductid, paymentid and too many columns for details).&lt;/P&gt;&lt;P&gt;The idea is: load the data into three table like customer, product and payment from the above one table.&lt;/P&gt;&lt;P&gt;but: i need to load customer table first and get the primarykey(identity) and productid for inserted record -&amp;gt; and send those product ID to where clause of another extraction to extract products of this inserted customer and -&amp;gt; insert customerprimarykey and productid into Product table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i tried using tMap but it the extraction taks all records and join and give expected result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it takes too long as i have 10m records:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to pass the product id from inserted customer table to Product extraction query at run time once the customer flow complted.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 04:38:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285568#M59190</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-08T04:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Relational data insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285569#M59191</link>
      <description>I suggest you to create a each job for each table and do the look-up to the key where it is required but you need to execute the jobs in order like parent table first and then child table next.</description>
      <pubDate>Wed, 08 Apr 2020 04:45:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285569#M59191</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-04-08T04:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Relational data insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285570#M59192</link>
      <description>&lt;P&gt;Dear Mano,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for replyimng.&lt;/P&gt;&lt;P&gt;I am doing the same and works fine but, the issue is&lt;/P&gt;&lt;P&gt;job1:&lt;/P&gt;&lt;P&gt;Source -&amp;gt; load only customer id and name into destination customer table "Customer" ( pkey, cusid,...)&lt;/P&gt;&lt;P&gt;job2:&lt;/P&gt;&lt;P&gt;Source -&amp;gt; select only products for cusid inserted from job1 and do rest.&lt;/P&gt;&lt;P&gt;what i want is:&lt;/P&gt;&lt;P&gt;job2 select query let say:&lt;/P&gt;&lt;P&gt;now: select productid from Source -&amp;gt; tmap gives inserted customer cusid and do the lookup&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is happening : the select query take all records and do the lookup and give only related record&lt;/P&gt;&lt;P&gt;but it takes too long&lt;/P&gt;&lt;P&gt;what needs: pass the inserted cusid from job1 to where clause of job2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 05:00:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285570#M59192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-08T05:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Relational data insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285571#M59193</link>
      <description>What is your target do? I</description>
      <pubDate>Wed, 08 Apr 2020 05:01:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285571#M59193</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-04-08T05:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Relational data insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285572#M59194</link>
      <description>&lt;P&gt;target insert only:&amp;nbsp;&lt;/P&gt;&lt;P&gt;job1: insert customer info to customer table&lt;/P&gt;&lt;P&gt;job2: insert product info along with pk of the customer table into product table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;job1: source query: select cusid from source_tbl&lt;/P&gt;&lt;P&gt;job2: source query: select productid from source_tbl where cusid=job.customer.cusid (want to achieve)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can i save all the inserted cusid to file and then pass the file values to where condition of job2 query?&lt;/P&gt;&lt;P&gt;if so pls advise the approach&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2020 05:05:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285572#M59194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-08T05:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Relational data insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285573#M59195</link>
      <description>You can save into file and you need to read that file and pass record by record how many customerid will you have? What the target database Type?</description>
      <pubDate>Wed, 08 Apr 2020 05:40:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285573#M59195</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-04-08T05:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: Relational data insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285574#M59196</link>
      <description>&lt;P&gt;thank you Mano for your time.&lt;/P&gt;
&lt;P&gt;bit detail:&lt;/P&gt;
&lt;P&gt;step1: loads 1m customer info to customer table ( cus_pk, cus_id, cus_contact). note: cus_pk is identity column&amp;nbsp;&lt;/P&gt;
&lt;P&gt;step2: load the product into product tables which has relation with customer. (pro_pk, cus_key, p_name) note: pro_pk is identity column&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;source table:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cus_id | cus_contact | pro_id | pro_name&lt;/P&gt;
&lt;P&gt;100 | C1 | 98 | MB_GR1&lt;/P&gt;
&lt;P&gt;100 | C1 | 99 | MB_GR2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;destination:&lt;/P&gt;
&lt;P&gt;Parent table: customer&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cus_pk | cus_id&lt;/P&gt;
&lt;P&gt;1 | 100&lt;/P&gt;
&lt;P&gt;Child table: product&lt;/P&gt;
&lt;P&gt;pro_pk | cus_key&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1 |1&lt;/P&gt;
&lt;P&gt;2 |1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;will it be possible using tMap?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Apr 2020 14:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285574#M59196</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-10T14:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Relational data insert</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285575#M59197</link>
      <description>Yes it is possible using tmap, first you need to take unique custid and load into customer table while inserting generate cus_key in tmap and in another job load products information ,do look-up with customer table and source to get cust_key.</description>
      <pubDate>Fri, 10 Apr 2020 14:56:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Relational-data-insert/m-p/2285575#M59197</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2020-04-10T14:56:52Z</dc:date>
    </item>
  </channel>
</rss>

