<?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: Passing values to a global veritable and  call it inside a tMSSQLInput component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Passing-values-to-a-global-veritable-and-call-it-inside-a/m-p/2284959#M58581</link>
    <description>Thanks a lot for your response. But as I have mentioned earlier I cannot join the two tables because they are coming from two different database and this IN condition is inside an inner sub query of the 2nd table.
&lt;BR /&gt;
&lt;BR /&gt;Let assume the from the 1st query the data is coming as below
&lt;BR /&gt;Employee_id
&lt;BR /&gt;1
&lt;BR /&gt;2
&lt;BR /&gt;3
&lt;BR /&gt;5
&lt;BR /&gt;7
&lt;BR /&gt;how I can store the the values in a tJava component as
&lt;BR /&gt;1,3,4,5,7
&lt;BR /&gt;
&lt;BR /&gt;and called the variable inside a query.
&lt;BR /&gt;
&lt;BR /&gt;FYI, I am able to write a the result of the 1st query/component in a .csv file. Then I am using another sub job to read the .csv file using tFlowToItterate to put the value in a global variable and then call the variable in the 2nd query/component. But now i want to store the value in a variable and call it in the 2nd query. My solution is workable but it is not the most efficient
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Wed, 04 Dec 2019 15:23:33 GMT</pubDate>
    <dc:creator>Tasfiahm</dc:creator>
    <dc:date>2019-12-04T15:23:33Z</dc:date>
    <item>
      <title>Passing values to a global veritable and  call it inside a tMSSQLInput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-values-to-a-global-veritable-and-call-it-inside-a/m-p/2284957#M58579</link>
      <description>&lt;P&gt;Let me explain the complex problem.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1. In my main job I am reading the data from a Oracle table and extracting EMPLOYEE_ID as numeric values.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2. So In my subjob I have a SQL Server tMSSqlInput component to select the data. where my sql look like this:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;Select name,employee_id&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;from emplyees&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#FF00FF"&gt;where employee_id In(.............................................)&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Global.JPG" style="width: 989px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M8ct.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144597i45A22A78A20AC7FB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M8ct.jpg" alt="0683p000009M8ct.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;I can't use a join between the two database.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;So if I want to put/store the values of the 1st SQL component output in a variable and call it inside the 2nd subjob SQL how i can do it.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;So now I want to use the output value of the 1st job inside the where clause of the 2nd job's sql&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-values-to-a-global-veritable-and-call-it-inside-a/m-p/2284957#M58579</guid>
      <dc:creator>Tasfiahm</dc:creator>
      <dc:date>2024-11-16T03:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Passing values to a global veritable and  call it inside a tMSSQLInput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-values-to-a-global-veritable-and-call-it-inside-a/m-p/2284958#M58580</link>
      <description>tJavaFlex to construct the IN clause from the 1rst select statement and store or into a global variable. Then reuse this variable for the 2nd select. Pay attention of possible query length limitation.&lt;BR /&gt;An other approach could be to make the join between both tables inside a tMap.</description>
      <pubDate>Tue, 03 Dec 2019 21:04:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-values-to-a-global-veritable-and-call-it-inside-a/m-p/2284958#M58580</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2019-12-03T21:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Passing values to a global veritable and  call it inside a tMSSQLInput component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Passing-values-to-a-global-veritable-and-call-it-inside-a/m-p/2284959#M58581</link>
      <description>Thanks a lot for your response. But as I have mentioned earlier I cannot join the two tables because they are coming from two different database and this IN condition is inside an inner sub query of the 2nd table.
&lt;BR /&gt;
&lt;BR /&gt;Let assume the from the 1st query the data is coming as below
&lt;BR /&gt;Employee_id
&lt;BR /&gt;1
&lt;BR /&gt;2
&lt;BR /&gt;3
&lt;BR /&gt;5
&lt;BR /&gt;7
&lt;BR /&gt;how I can store the the values in a tJava component as
&lt;BR /&gt;1,3,4,5,7
&lt;BR /&gt;
&lt;BR /&gt;and called the variable inside a query.
&lt;BR /&gt;
&lt;BR /&gt;FYI, I am able to write a the result of the 1st query/component in a .csv file. Then I am using another sub job to read the .csv file using tFlowToItterate to put the value in a global variable and then call the variable in the 2nd query/component. But now i want to store the value in a variable and call it in the 2nd query. My solution is workable but it is not the most efficient
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Dec 2019 15:23:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Passing-values-to-a-global-veritable-and-call-it-inside-a/m-p/2284959#M58581</guid>
      <dc:creator>Tasfiahm</dc:creator>
      <dc:date>2019-12-04T15:23:33Z</dc:date>
    </item>
  </channel>
</rss>

