<?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: Use variable in SQL Builder in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240813#M28156</link>
    <description>&lt;P&gt;needs could be changed, the method still the same &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;count -&amp;gt; compare -&amp;gt; choose action -&amp;gt; do it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you more familar with SQL - do simple - load all in temp table, and run SQL queries with tSQLRow, sometime it make Job much simple&lt;/P&gt;</description>
    <pubDate>Tue, 12 Mar 2019 12:54:30 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2019-03-12T12:54:30Z</dc:date>
    <item>
      <title>Use variable in SQL Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240804#M28147</link>
      <description>&lt;P&gt;Hello community !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;I want to retrieve a field of input 1 and use it in the SQL query of input 2,
With each execution, the result is null whereas the query works if I use a very precise field.

Do you have ideas?&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Mar 2019 10:12:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240804#M28147</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-11T10:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable in SQL Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240805#M28148</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you must use + for concatenate strings, also if you not set up name&amp;nbsp;you must add flow name to variable name&lt;/P&gt;
&lt;PRE&gt;LIKE '"+(String)globalMap.get("row1.FileName")+"'&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Mar 2019 10:52:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240805#M28148</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-11T10:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable in SQL Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240806#M28149</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi vapukov,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I tried it but I have an error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LukC"&gt;Capture.PNG&lt;/A&gt;</description>
      <pubDate>Mon, 11 Mar 2019 11:04:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240806#M28149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-11T11:04:54Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable in SQL Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240807#M28150</link>
      <description>&lt;P&gt;variables - do not work in SQL Builder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry I not guess - what you are looking for&lt;BR /&gt;when you run query in Bulider&amp;nbsp;- variables is not ready, but form which I provide for you will work in the Job&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 11:07:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240807#M28150</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-11T11:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable in SQL Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240808#M28151</link>
      <description>&lt;P&gt;I changed my sql query to&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;SELECT FileName&lt;BR /&gt;FROM mvt_Ods&lt;BR /&gt;where Return_Mark!=' ' and PackingList_Type!='P'&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Now I want to use the result in order to :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If the number of lines in the result equals the number of lines of a specific FileName =&amp;gt; result : delete from table&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;to summarize, I want to see if the number of rows Return_Mark!=' ' and PackingList_Type!='P' for each FileName&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;is equal to the number of rows of each&amp;nbsp;FileName&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 11:41:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240808#M28151</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-11T11:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable in SQL Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240809#M28152</link>
      <description>&lt;P&gt;perfect!&lt;/P&gt;&lt;P&gt;and what is the problem?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 12:03:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240809#M28152</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-11T12:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable in SQL Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240810#M28153</link>
      <description>&lt;P&gt;I have to sql queries now :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1/&lt;/P&gt; 
&lt;P&gt;SELECT count(FileName) as numberCondition,&lt;BR /&gt;FileName&lt;BR /&gt;&lt;BR /&gt;FROM mvt_Ods&lt;BR /&gt;where Return_Mark!=' ' and PackingList_Type!='P'&lt;BR /&gt;group by FileName&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;2/&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;SELECT count(FileName) as number,&lt;BR /&gt;FileName&lt;BR /&gt;FROM mvt_Ods&lt;BR /&gt;group by FileName&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I don't know how to match between the two queries in order to :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;If the number of lines in the result equals the number of lines of a specific FileName and the FileName1 is equal to the FileName2 =&amp;gt; result : delete from table&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;And I can only catch the number in the query result i can't catch the FileName of that number&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 14:41:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240810#M28153</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-11T14:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable in SQL Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240811#M28154</link>
      <description>&lt;P&gt;execute both queries and store each result into variable then&amp;nbsp;use tRunIf trigger&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 21:12:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240811#M28154</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-11T21:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable in SQL Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240812#M28155</link>
      <description>&lt;P&gt;Hello vapukov,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My need changed so :&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a table wich contains&amp;nbsp;&lt;SPAN&gt;Return_Mark,&amp;nbsp;PackingList_Type and FileName and other columns.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;For example the result of&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Return_Mark!=' ' &amp;amp;&amp;amp; PackingList_Type !='P'&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;is&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;for FileName ='A' : 100 rows&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;for FileName ='B' : 200 rows&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;And the result of&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;distinct count(FileName)&amp;nbsp;&lt;/STRONG&gt;is&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;for FileName ='A' : 100 rows&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;for FileName ='B' : 300 rows&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;FileName='A'&amp;nbsp;&lt;/STRONG&gt;have the same number of rows for the two queries so I have create a new table wich contain the other FileName(s) and for this example it's&amp;nbsp;&lt;STRONG&gt;FileName ='B'.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 08:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240812#M28155</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-12T08:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: Use variable in SQL Builder</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240813#M28156</link>
      <description>&lt;P&gt;needs could be changed, the method still the same &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;count -&amp;gt; compare -&amp;gt; choose action -&amp;gt; do it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if you more familar with SQL - do simple - load all in temp table, and run SQL queries with tSQLRow, sometime it make Job much simple&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2019 12:54:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Use-variable-in-SQL-Builder/m-p/2240813#M28156</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-12T12:54:30Z</dc:date>
    </item>
  </channel>
</rss>

