<?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: JasperETL multiple output tables in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/JasperETL-multiple-output-tables/m-p/2302565#M74536</link>
    <description>Hello 
&lt;BR /&gt;In fact, you can create the table if it does not exist on tMysqOutput before inserting records into table. For example: 
&lt;BR /&gt;do your integration---tMysqlOutput_1 
&lt;BR /&gt; | 
&lt;BR /&gt; onSubJobOk 
&lt;BR /&gt; | 
&lt;BR /&gt; tJava 
&lt;BR /&gt; | 
&lt;BR /&gt; RunIf 
&lt;BR /&gt; | 
&lt;BR /&gt; tFixedFlowInput or tMysqlInput(select product_name, days_to_purchase from Days_to_purchase) ---tMysqlOutput_2 
&lt;BR /&gt;on tMysqlOutput_1: create the table Days_to_purchase if it does not exists before inserting records into table 
&lt;BR /&gt;on tJava: use the global var 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;(Integer)globalMap.get("tMysqlOutput_1_NB_LINE_INSERTED")) to check if you have new inserted rows, for exampe: 
&lt;BR /&gt; 
&lt;PRE&gt;if((Integer)globalMap.get("tMysqlOutput_1_NB_LINE_INSERTED") &amp;gt;1){&lt;BR /&gt;  globalMap.put("weHaveDaysToPurchase",true);&lt;BR /&gt;}else{&lt;BR /&gt;  globalMap.put("weHaveDaysToPurchase",false);&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt;on runIf expression, set the condition as: 
&lt;BR /&gt; 
&lt;PRE&gt;(Boolean)globalMap.get("weHaveDaysToPurchase")&lt;/PRE&gt; 
&lt;BR /&gt;On tMysqlOutput_2, create the table if it does not exist before inserting records into table for the first time, it based on your need. 
&lt;BR /&gt;Here I just gave you a hint, hope you understand what I mean!!! 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
    <pubDate>Fri, 05 Mar 2010 03:45:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-03-05T03:45:14Z</dc:date>
    <item>
      <title>JasperETL multiple output tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JasperETL-multiple-output-tables/m-p/2302562#M74533</link>
      <description>Hi!!
&lt;BR /&gt;I have 2 input tables with the following columns:
&lt;BR /&gt;1/ Downloads: customer email, product name, download date
&lt;BR /&gt;2/ Purchase: customer email, product name, purchase date
&lt;BR /&gt;After integration, I would like to see 2 tables:
&lt;BR /&gt;1/ Days_to_purchase: customer email, product name, number of days to purchase (days_to_purchase)
&lt;BR /&gt;2/ Count_days: product name, days_to_purchase &amp;lt;1, days_to_purchase&amp;lt;30
&lt;BR /&gt;Is it possible to create table 2 with JasperETL? Can I use SQL queries to create this table? If yes, what function in JasperETL allows me to do this?
&lt;BR /&gt;Thanks</description>
      <pubDate>Sat, 16 Nov 2024 13:31:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JasperETL-multiple-output-tables/m-p/2302562#M74533</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: JasperETL multiple output tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JasperETL-multiple-output-tables/m-p/2302563#M74534</link>
      <description>Hello 
&lt;BR /&gt;You can use txxxRow component to execute a create sql to the table at the begining of job.
&lt;BR /&gt;Best regards
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 05 Mar 2010 03:13:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JasperETL-multiple-output-tables/m-p/2302563#M74534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-05T03:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: JasperETL multiple output tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JasperETL-multiple-output-tables/m-p/2302564#M74535</link>
      <description>Hi Shong! 
&lt;BR /&gt;Can you be more specific? the Count_days table should be generated based on Days_to_purchase table because it will count the number of customers who purchase product within 1 day or 1 month. Days_to_purchase will be generated during integration but Count_days will be generated after we have Days_to_purchase. Is it possible to do that with JasperETL? 
&lt;BR /&gt;Thanks</description>
      <pubDate>Fri, 05 Mar 2010 03:20:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JasperETL-multiple-output-tables/m-p/2302564#M74535</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-05T03:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: JasperETL multiple output tables</title>
      <link>https://community.qlik.com/t5/Talend-Studio/JasperETL-multiple-output-tables/m-p/2302565#M74536</link>
      <description>Hello 
&lt;BR /&gt;In fact, you can create the table if it does not exist on tMysqOutput before inserting records into table. For example: 
&lt;BR /&gt;do your integration---tMysqlOutput_1 
&lt;BR /&gt; | 
&lt;BR /&gt; onSubJobOk 
&lt;BR /&gt; | 
&lt;BR /&gt; tJava 
&lt;BR /&gt; | 
&lt;BR /&gt; RunIf 
&lt;BR /&gt; | 
&lt;BR /&gt; tFixedFlowInput or tMysqlInput(select product_name, days_to_purchase from Days_to_purchase) ---tMysqlOutput_2 
&lt;BR /&gt;on tMysqlOutput_1: create the table Days_to_purchase if it does not exists before inserting records into table 
&lt;BR /&gt;on tJava: use the global var 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;(Integer)globalMap.get("tMysqlOutput_1_NB_LINE_INSERTED")) to check if you have new inserted rows, for exampe: 
&lt;BR /&gt; 
&lt;PRE&gt;if((Integer)globalMap.get("tMysqlOutput_1_NB_LINE_INSERTED") &amp;gt;1){&lt;BR /&gt;  globalMap.put("weHaveDaysToPurchase",true);&lt;BR /&gt;}else{&lt;BR /&gt;  globalMap.put("weHaveDaysToPurchase",false);&lt;BR /&gt;}&lt;/PRE&gt; 
&lt;BR /&gt;on runIf expression, set the condition as: 
&lt;BR /&gt; 
&lt;PRE&gt;(Boolean)globalMap.get("weHaveDaysToPurchase")&lt;/PRE&gt; 
&lt;BR /&gt;On tMysqlOutput_2, create the table if it does not exist before inserting records into table for the first time, it based on your need. 
&lt;BR /&gt;Here I just gave you a hint, hope you understand what I mean!!! 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Fri, 05 Mar 2010 03:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/JasperETL-multiple-output-tables/m-p/2302565#M74536</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-03-05T03:45:14Z</dc:date>
    </item>
  </channel>
</rss>

