<?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: Dynamic query in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242944#M29604</link>
    <description>Good solution contentengineer. A more TOS way to do things would be to replace the tJavaRow with a tContextLoad (so that you don't use manual code). Anyway, using a context variable is a good solution. In my opinion, it would be better to use a simple "global" variable because context is a global variable with a specific meaning. But as we don't have a tSetGlobalVariable, using a tContextLoad is better.</description>
    <pubDate>Wed, 14 Nov 2007 08:35:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2007-11-14T08:35:53Z</dc:date>
    <item>
      <title>Dynamic query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242942#M29602</link>
      <description>Our DW is in MySQL, with inputs from both MySQL and MSSQL transactional systems and Access (for legacy data). 
&lt;BR /&gt;Every night we wish to load in the latest transactions. (Each transaction is uniquely numbered in the source). 
&lt;BR /&gt;We keep a record of the last transaction in a table in the DW. 
&lt;BR /&gt;How do we use the result of a tMysqlRow component to modify the query on a MSSQLInput or MySQLInput job? For example: 
&lt;BR /&gt;tMySQLRow select lastransactionid from transactionhistory where transactiontype='web'; 
&lt;BR /&gt;tMSSQLRow/tMySQLRow select .... from transactiontable where transactionid &amp;gt; x ... (where x is the output from tMySQL Row) 
&lt;BR /&gt;We have looked at using tMap, but the performance appears to be slow as it traverses the remote systems row by row. If we can modify the query we can reduce the amount of data transferred. 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;ce</description>
      <pubDate>Sat, 16 Nov 2024 14:31:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242942#M29602</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242943#M29603</link>
      <description>Did some additional research (manual is not too explicit in these areas)... 
&lt;BR /&gt;1. Created contextvariable 
&lt;BR /&gt;2. Created MysqlInput job to query for single row, single field field 
&lt;BR /&gt;3. Created tJavaRow job (from (2)) to context.setProperty("contextvariable",row1.singlefield) 
&lt;BR /&gt;4. Then Run, MSSqlInput job with an amended query: "SELECT ... FROM ...."+(String)((String)context.getProperty("contextvariable")) 
&lt;BR /&gt;Works perfectly.</description>
      <pubDate>Tue, 13 Nov 2007 15:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242943#M29603</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-13T15:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242944#M29604</link>
      <description>Good solution contentengineer. A more TOS way to do things would be to replace the tJavaRow with a tContextLoad (so that you don't use manual code). Anyway, using a context variable is a good solution. In my opinion, it would be better to use a simple "global" variable because context is a global variable with a specific meaning. But as we don't have a tSetGlobalVariable, using a tContextLoad is better.</description>
      <pubDate>Wed, 14 Nov 2007 08:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242944#M29604</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2007-11-14T08:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242945#M29605</link>
      <description>Hi,&lt;BR /&gt;I need to do the same with integer field. how can i do this?</description>
      <pubDate>Mon, 02 Nov 2009 16:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242945#M29605</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-02T16:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242946#M29606</link>
      <description>Hello
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;I need to do the same with integer field. how can i do this?&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;"select * from person where id="+context.id
&lt;BR /&gt;Best regards
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Tue, 03 Nov 2009 05:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242946#M29606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-03T05:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242947#M29607</link>
      <description>hi &lt;BR /&gt;&lt;BR /&gt;i want to execute mysql query in tool ,which components to use,the requirement is as follows&lt;BR /&gt;TAB1                                                               TAB2&lt;BR /&gt;id     name      age                                           id        place&lt;BR /&gt;1       x            10                                            1           a&lt;BR /&gt;2       y            12                                            2           b&lt;BR /&gt;the query is : select a.id,a.name,a.age,b.place  from TAB1 a,TAB2 b where a.id=b.id;&lt;BR /&gt;the output should be&lt;BR /&gt;1     x         10       a&lt;BR /&gt;2     y         12       b</description>
      <pubDate>Fri, 12 Jul 2013 10:12:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242947#M29607</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-07-12T10:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242948#M29608</link>
      <description>Hi banu, &lt;BR /&gt;You can use &lt;A href="https://help.talend.com/search/all?query=tMysqlInput&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tMySqlInput&lt;/A&gt;  and &lt;A href="https://help.talend.com/search/all?query=tMysqlRow&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tMysqlRow&lt;/A&gt; to execute query. In addition, tMap is also a good option if you don't execute query.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Fri, 12 Jul 2013 10:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242948#M29608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-12T10:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242949#M29609</link>
      <description>Hi can u show the job design i want the result from query to be loaded into database table</description>
      <pubDate>Fri, 12 Jul 2013 10:45:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242949#M29609</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2013-07-12T10:45:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic query</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242950#M29610</link>
      <description>Hi, 
&lt;BR /&gt;To make it clear, I have designed a demo job. 
&lt;BR /&gt;I choose to use tMysqlInput to execute the simple query. tMySqlInput--&amp;gt;tMySqlOutput 
&lt;BR /&gt;see my screenshots 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Sabrina 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBVC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/148538i9781D4A9657DCFEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBVC.png" alt="0683p000009MBVC.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBVH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132354i111AD702BEEA4BAD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBVH.png" alt="0683p000009MBVH.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBRH.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150273iCCEB93CE08831575/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBRH.png" alt="0683p000009MBRH.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 12 Jul 2013 11:21:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Dynamic-query/m-p/2242950#M29610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-12T11:21:40Z</dc:date>
    </item>
  </channel>
</rss>

