<?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 Excel file to multiple MySQL tables with conditional logic in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Excel-file-to-multiple-MySQL-tables-with-conditional-logic/m-p/2267991#M46697</link>
    <description>Hi,
&lt;BR /&gt;My client has decided to use Talend Open Studio as a data import tool for some of their systems, and have asked me to investigate suitability.
&lt;BR /&gt;So far I have been able to import CSV file into a single MySQL table. However, I'm completely at a loss as to how to do the following:
&lt;BR /&gt;- open an Excel file
&lt;BR /&gt;- iterate through the rows and populate Table A in a MySQL database with some of the fields. IF recrod is new, insert, if not update, EXCEPT where an incoming field value is NULL
&lt;BR /&gt;- for each row, also populate some child tables, using the primary key of the row above as the foreign key, and doing the same INSERT / UPDATE regime as above
&lt;BR /&gt;I have tried so many things but can;t figure out the child table or the conditional branching for Insert Update and for NULL / NOT NULL
&lt;BR /&gt;I would really appreciate guidance on this - ie what items to use, in which order and what triggers to fire off (if any? )
&lt;BR /&gt;Many thanks in advance</description>
    <pubDate>Sat, 16 Nov 2024 13:11:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:11:16Z</dc:date>
    <item>
      <title>Excel file to multiple MySQL tables with conditional logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Excel-file-to-multiple-MySQL-tables-with-conditional-logic/m-p/2267991#M46697</link>
      <description>Hi,
&lt;BR /&gt;My client has decided to use Talend Open Studio as a data import tool for some of their systems, and have asked me to investigate suitability.
&lt;BR /&gt;So far I have been able to import CSV file into a single MySQL table. However, I'm completely at a loss as to how to do the following:
&lt;BR /&gt;- open an Excel file
&lt;BR /&gt;- iterate through the rows and populate Table A in a MySQL database with some of the fields. IF recrod is new, insert, if not update, EXCEPT where an incoming field value is NULL
&lt;BR /&gt;- for each row, also populate some child tables, using the primary key of the row above as the foreign key, and doing the same INSERT / UPDATE regime as above
&lt;BR /&gt;I have tried so many things but can;t figure out the child table or the conditional branching for Insert Update and for NULL / NOT NULL
&lt;BR /&gt;I would really appreciate guidance on this - ie what items to use, in which order and what triggers to fire off (if any? )
&lt;BR /&gt;Many thanks in advance</description>
      <pubDate>Sat, 16 Nov 2024 13:11:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Excel-file-to-multiple-MySQL-tables-with-conditional-logic/m-p/2267991#M46697</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file to multiple MySQL tables with conditional logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Excel-file-to-multiple-MySQL-tables-with-conditional-logic/m-p/2267992#M46698</link>
      <description>can u give the detail description of ur issue please&lt;BR /&gt;asi am nt able to understand what u want to say</description>
      <pubDate>Tue, 07 Dec 2010 13:41:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Excel-file-to-multiple-MySQL-tables-with-conditional-logic/m-p/2267992#M46698</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-07T13:41:06Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file to multiple MySQL tables with conditional logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Excel-file-to-multiple-MySQL-tables-with-conditional-logic/m-p/2267993#M46699</link>
      <description>most of the dbOutput components contain a field: "Action on data" This can take care of your update/insert logic. 
&lt;BR /&gt;you can use a tFilterRow or a tMap output filter to separate out NULL rows. 
&lt;BR /&gt;if you are generating your keys with sequences/autoincrement, you can insert child rows by using the "Additional columns" in the advanced settings of your DB output.</description>
      <pubDate>Tue, 07 Dec 2010 15:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Excel-file-to-multiple-MySQL-tables-with-conditional-logic/m-p/2267993#M46699</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-07T15:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file to multiple MySQL tables with conditional logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Excel-file-to-multiple-MySQL-tables-with-conditional-logic/m-p/2267994#M46700</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;most of the dbOutput components contain a field: "Action on data" This can take care of your update/insert logic.&lt;BR /&gt;you can use a tFilterRow or a tMap output filter to separate out NULL rows. &lt;BR /&gt;if you are generating your keys with sequences/autoincrement, you can insert child rows by using the "Additional columns" in the advanced settings of your DB output.&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Many thanks John, 
&lt;BR /&gt;I'll look into these in more detail and try to move things along. 
&lt;BR /&gt;Just one thing, where you say I can use a tMap to filter out NULLs, are you saying that a tMap can conditionally pass a value across to the mapped destination? That's pretty clever if so 
&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>Tue, 07 Dec 2010 16:29:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Excel-file-to-multiple-MySQL-tables-with-conditional-logic/m-p/2267994#M46700</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-07T16:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Excel file to multiple MySQL tables with conditional logic</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Excel-file-to-multiple-MySQL-tables-with-conditional-logic/m-p/2267995#M46701</link>
      <description>@Sparrowhawk
&lt;BR /&gt;That is exactly what I'm saying. In the attached screenshot I've highlighted the buttons in the tMap that allow you to do this.</description>
      <pubDate>Wed, 08 Dec 2010 17:57:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Excel-file-to-multiple-MySQL-tables-with-conditional-logic/m-p/2267995#M46701</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-08T17:57:42Z</dc:date>
    </item>
  </channel>
</rss>

