<?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 How to set context variables with query result in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-context-variables-with-query-result/m-p/2333875#M102613</link>
    <description>&lt;P&gt;Hi at all&amp;nbsp;&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;I've necessary execute 2 query. The first query results is a parameter that I would use in second query.&lt;BR /&gt;For example:&lt;BR /&gt;1 Query: select max(date) from A&lt;BR /&gt;2 query: select count(*) from B where max(date.A) &amp;gt; max(date.B)&lt;BR /&gt;I would use max(date.A) like variable, so : Select count(*) from B where "variable" &amp;gt; max(date.B)&lt;BR /&gt;How I can do it?&lt;BR /&gt;Best regards&lt;BR /&gt;thnx at all&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 10:50:37 GMT</pubDate>
    <dc:creator>chichibio</dc:creator>
    <dc:date>2024-11-16T10:50:37Z</dc:date>
    <item>
      <title>How to set context variables with query result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-context-variables-with-query-result/m-p/2333875#M102613</link>
      <description>&lt;P&gt;Hi at all&amp;nbsp;&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;I've necessary execute 2 query. The first query results is a parameter that I would use in second query.&lt;BR /&gt;For example:&lt;BR /&gt;1 Query: select max(date) from A&lt;BR /&gt;2 query: select count(*) from B where max(date.A) &amp;gt; max(date.B)&lt;BR /&gt;I would use max(date.A) like variable, so : Select count(*) from B where "variable" &amp;gt; max(date.B)&lt;BR /&gt;How I can do it?&lt;BR /&gt;Best regards&lt;BR /&gt;thnx at all&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 10:50:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-context-variables-with-query-result/m-p/2333875#M102613</guid>
      <dc:creator>chichibio</dc:creator>
      <dc:date>2024-11-16T10:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to set context variables with query result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-context-variables-with-query-result/m-p/2333876#M102614</link>
      <description>It depends on how you want to use the value, timing, flow vs iterate connections, etc, etc. But as a start I would recommend returning your result from a db input component and then using a tJavaRow component to set the result to a context variable.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;You might also want to look at the tContextLoad component as that might solve your problem in an easier way.</description>
      <pubDate>Tue, 26 Jan 2016 10:07:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-context-variables-with-query-result/m-p/2333876#M102614</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-01-26T10:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to set context variables with query result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-context-variables-with-query-result/m-p/2333877#M102615</link>
      <description>&lt;BLOCKQUOTE&gt;
  rhall_2.0 wrote: 
 &lt;BR /&gt;It depends on how you want to use the value, timing, flow vs iterate connections, etc, etc. But as a start I would recommend returning your result from a db input component and then using a tJavaRow component to set the result to a context variable.&amp;nbsp; 
 &lt;BR /&gt; 
 &lt;BR /&gt;You might also want to look at the tContextLoad component as that might solve your problem in an easier way. 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;It's a simple flow. Nothing else...&amp;nbsp; 
&lt;BR /&gt;Just read from table &amp;gt; put the result in variable and compare with another date from another db and table..finally count the difference of record. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MH5d.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131727i7F8EE075BECC94F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MH5d.png" alt="0683p000009MH5d.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 26 Jan 2016 10:26:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-context-variables-with-query-result/m-p/2333877#M102615</guid>
      <dc:creator>chichibio</dc:creator>
      <dc:date>2016-01-26T10:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to set context variables with query result</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-set-context-variables-with-query-result/m-p/2333878#M102616</link>
      <description>help me !!! 
&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; 
&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; 
&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; 
&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;&amp;nbsp;please 
&lt;BR /&gt; 
&lt;BR /&gt;how I can do it!!thnx</description>
      <pubDate>Tue, 26 Jan 2016 15:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-set-context-variables-with-query-result/m-p/2333878#M102616</guid>
      <dc:creator>chichibio</dc:creator>
      <dc:date>2016-01-26T15:48:37Z</dc:date>
    </item>
  </channel>
</rss>

