<?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: SQL BUILDER - How can I include a context variable in the WHERE clause in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271711#M49222</link>
    <description>Hi chrisBolduc, 
&lt;BR /&gt;Can you make it success if you use the value directly without variable in query? 
&lt;BR /&gt;Would you mind 
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;elaborating your case with an example with input and expected output values?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;Best regards&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;Sabrina&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;BR /&gt; 
&lt;BR /&gt; 
&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Wed, 24 Feb 2016 02:55:24 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-24T02:55:24Z</dc:date>
    <item>
      <title>SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271690#M49201</link>
      <description>Hi:&lt;BR /&gt;I want to use in an sql query a value prompted in the context. (I'm using an INFORMIX database).&lt;BR /&gt;I've created the variable called "myvariable" .  When I run the job, it prompts for a value, just as I want.&lt;BR /&gt;When I want to include it in my query, I type Ctrl+SpaceBar and I can select my variable from a list (it was called "context.myvariable". &lt;BR /&gt;The query  appears so:&lt;BR /&gt;"SELECT * FROM mytable&lt;BR /&gt;WHERE column1 = context.myvariable"&lt;BR /&gt;The system rejects my code saying "COLUMN context IS NOT FOUND IN ANY TABLE IN THE QUERY".&lt;BR /&gt;Please help me to mend my syntax.&lt;BR /&gt;Thank you very much in advance.&lt;BR /&gt;Juan Carlos.</description>
      <pubDate>Sat, 16 Nov 2024 14:25:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271690#M49201</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T14:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271691#M49202</link>
      <description>Hello, &lt;BR /&gt;The correct syntax is "SELECT * FROM mytable WHERE column1 = "+context.myvariable &lt;BR /&gt;Regards,</description>
      <pubDate>Fri, 14 Mar 2008 20:08:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271691#M49202</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-14T20:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271692#M49203</link>
      <description>Thanks to mhirt for your answer. 
&lt;BR /&gt;I tried to use it, but it didn't work. 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;The variable context.PROVINCIA contained "JUJUY" (without the "").&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;This is my real query: 
&lt;BR /&gt; 
&lt;PRE&gt;"SELECT provincias.codigo, provincias.nombre &lt;BR /&gt;FROM provincias where provincias.nombre = "+context.PROVINCIA&lt;/PRE&gt; 
&lt;BR /&gt;And the program crashed with this message (the same problem as before): 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Starting job Prueba3 at 14:08 17/03/2008.&lt;BR /&gt;Exception in component tInformixInput_2&lt;BR /&gt;java.sql.SQLException:&lt;B&gt; Column (jujuy) not found in any table in the query&lt;/B&gt; (or SLV is undefined).&lt;BR /&gt; at com.informix.jdbc.IfxSqli.a(IfxSqli.java:3240)&lt;BR /&gt; at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3553)&lt;BR /&gt; at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2380)&lt;BR /&gt; at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2295)&lt;BR /&gt; at com.informix.jdbc.IfxSqli.executeStatementQuery(IfxSqli.java:1461)&lt;BR /&gt; at com.informix.jdbc.IfxSqli.executeStatementQuery(IfxSqli.java:1434)&lt;BR /&gt; at com.informix.jdbc.IfxResultSet.a(IfxResultSet.java:205)&lt;BR /&gt; at com.informix.jdbc.IfxStatement.executeQueryImpl(IfxStatement.java:1228)&lt;BR /&gt; at com.informix.jdbc.IfxStatement.executeQuery(IfxStatement.java:218)&lt;BR /&gt; at prueba2.prueba3.Prueba3.tInformixInput_2Process(Prueba3.java:254)&lt;BR /&gt; at prueba2.prueba3.Prueba3.runJobInTOS(Prueba3.java:511)&lt;BR /&gt; at prueba2.prueba3.Prueba3.main(Prueba3.java:428)&lt;BR /&gt;Caused by: java.sql.SQLException&lt;BR /&gt; at com.informix.util.IfxErrMsg.getSQLException(IfxErrMsg.java:397)&lt;BR /&gt; at com.informix.jdbc.IfxSqli.E(IfxSqli.java:3558)&lt;BR /&gt; ... 10 more&lt;BR /&gt;Job Prueba3 ended at 14:08 17/03/2008. &lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;---------------- 
&lt;BR /&gt;Please help me. Regards.</description>
      <pubDate>Mon, 17 Mar 2008 14:21:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271692#M49203</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-17T14:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271693#M49204</link>
      <description>Hello,
&lt;BR /&gt;Little update :
&lt;BR /&gt;"SELECT * FROM mytable WHERE column1 = '"+context.myvariable + "'"
&lt;BR /&gt;or
&lt;BR /&gt;"SELECT * FROM mytable WHERE column1 LIKE '"+context.myvariable + "'"
&lt;BR /&gt;HTH,</description>
      <pubDate>Mon, 17 Mar 2008 20:52:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271693#M49204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-17T20:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271694#M49205</link>
      <description>By the way: Is there a planned support for static SQL?</description>
      <pubDate>Mon, 17 Mar 2008 21:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271694#M49205</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-17T21:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271695#M49206</link>
      <description>What do you mean Volker ?</description>
      <pubDate>Mon, 17 Mar 2008 21:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271695#M49206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-17T21:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271696#M49207</link>
      <description>Hello Michaël ,
&lt;BR /&gt;actual the tXXXComponents uses dynamic sql (please correct me if I'm wrong). Maybe the tXXXOutput components are using static sql.
&lt;BR /&gt;Based on a tXXXRow: In the component I would define my sql-string, all parameters / values are replaced by (db-specific) placeholders. There should be a table with the mapping between the placeholders and the row attributes . The sql will be prepared in the database and for each row executed. 
&lt;BR /&gt;Benefits: less overhead for the database and higher security (avoiding code injection).
&lt;BR /&gt;Bye
&lt;BR /&gt;Volker</description>
      <pubDate>Mon, 17 Mar 2008 22:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271696#M49207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-17T22:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271697#M49208</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Based on a tXXXRow: In the component I would define my sql-string, all parameters / values are replaced by (db-specific) placeholders. There should be a table with the mapping between the placeholders and the row attributes . The sql will be prepared in the database and for each row executed.&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;This feature is present in Perl tMysqlOutput. Volker, I suggest you to create a feature request in the bugtracker so that you also have it in the Java component.</description>
      <pubDate>Mon, 17 Mar 2008 22:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271697#M49208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-17T22:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271698#M49209</link>
      <description>Thanks for the fast answer. I personally do not need the prepared statement because I don't have many rows to handle and no security requirements. But It crosses my mind if I read the thread and I think it could be interesting for the "power user" (depending on the data to move).</description>
      <pubDate>Mon, 17 Mar 2008 22:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271698#M49209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-17T22:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271699#M49210</link>
      <description>Thanks to Michel Hirt for your answer. I'll try it now.</description>
      <pubDate>Tue, 18 Mar 2008 12:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271699#M49210</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-18T12:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271700#M49211</link>
      <description>Thank you very much. It worked fine.</description>
      <pubDate>Tue, 18 Mar 2008 12:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271700#M49211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-18T12:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271701#M49212</link>
      <description>how can i use the below query in a proper...........when i use this it shows "connect to db error or in sql string" 
&lt;BR /&gt; 
&lt;BR /&gt;"update paraminput set ProcessTag=1 where U_Id= "+context.myvariable</description>
      <pubDate>Mon, 29 Dec 2008 07:42:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271701#M49212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-29T07:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271702#M49213</link>
      <description>Hi&lt;BR /&gt;Did you create a context variable named myvariable in the context view (or context repository)?&lt;BR /&gt;Best regards;</description>
      <pubDate>Mon, 29 Dec 2008 10:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271702#M49213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-12-29T10:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271703#M49214</link>
      <description>Hi,&lt;BR /&gt;I have read this thread (and some others), but unfortunately are still not able to use a global variable within the SQL Builder.&lt;BR /&gt;I use Perl and PostgreSQL, and have the following query I would like to execute:&lt;BR /&gt;SELECT * &lt;BR /&gt;FROM adm.job_instance&lt;BR /&gt;WHERE job_id=.$_context{domain}&lt;BR /&gt;&lt;BR /&gt;domain is a contextvariabel with the same type as job_id (being integer).&lt;BR /&gt;I have tried all the possible options as mentioned above, but simply can't get it to work.&lt;BR /&gt;Help would be appreciated.&lt;BR /&gt;Kind regards,&lt;BR /&gt;Michel</description>
      <pubDate>Wed, 25 Feb 2009 16:08:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271703#M49214</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-02-25T16:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271704#M49215</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;SELECT * &lt;BR /&gt;FROM adm.job_instance&lt;BR /&gt;WHERE job_id=.$_context{domain}&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Do you have quotes around select statement?&lt;BR /&gt;'SELECT * &lt;BR /&gt;FROM adm.job_instance&lt;BR /&gt;WHERE job_id='.$_context{domain}</description>
      <pubDate>Wed, 25 Feb 2009 16:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271704#M49215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-02-25T16:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271705#M49216</link>
      <description>Hi Timson, 
&lt;BR /&gt;It works, thanks! 
&lt;BR /&gt;It looks like I was under the assumtion I did something wrong since I am not able to enter the SQL Builder when a context variable is part of my SQL statement. WHen there is a context variable in my SQL statement, and I try to enter the SQL builder I get the following message: Query Statement Error!. The details of the error are: 
&lt;BR /&gt;This query can not contain context parameters (like $_context) , 
&lt;BR /&gt; or this query has not been enclosed by '. 
&lt;BR /&gt; or has some expressions. Please correct. 
&lt;BR /&gt;This made me think something was wrong. 
&lt;BR /&gt;Anyhow, many thanks. 
&lt;BR /&gt;Kind regards, 
&lt;BR /&gt;Michel</description>
      <pubDate>Wed, 25 Feb 2009 19:37:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271705#M49216</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-02-25T19:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271706#M49217</link>
      <description>Hello: 
&lt;BR /&gt;If I write this sentence in the window "SQL Builder", I find an error. 
&lt;BR /&gt;I have defined Factura like context. 
&lt;BR /&gt;SELECT "public"."c_bpartner"."c_bpartner_id" FROM "public"."c_bpartner" 
&lt;BR /&gt;where c_bpartner_id in (+context.Factura) 
&lt;BR /&gt;group by "c_bpartner_id" 
&lt;BR /&gt; 
&lt;BR /&gt;"ERROR: Falta una tabla para la entrada para la tabla context en la clausula FROM" 
&lt;BR /&gt;It seems that the program tray to reead context like a table. How to include in the sentence the content of the variable Factura? 
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 03 Jun 2009 10:22:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271706#M49217</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-06-03T10:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271707#M49218</link>
      <description>databases typically treat anything not in single quotes to be object names, such as column names, table names, etc. depending on where in the query you are. double quotes are also treated as object names.&lt;BR /&gt;a recurring issue (potentially) in all of the examples above are that quotes are not being used in the proper place. when referring to column names being generated from a context variable, the result should always be placed in quotes, unless it is a numeric value of course.  not using a quote in your example makes the database think it is expecting the name of a table in the brackets, if u place this in single quotes instead, the database will then expect a value instead.&lt;BR /&gt;i think this makes sense?</description>
      <pubDate>Wed, 03 Jun 2009 12:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271707#M49218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-03T12:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271708#M49219</link>
      <description>Hello
&lt;BR /&gt;Thanks for the answer. Problem was in the quote, certainly.
&lt;BR /&gt;Another question. How can assign directly a group of values to a variable of context?
&lt;BR /&gt;For example, I need sendto context some values of a camp from DB, in order to iterate after with this.
&lt;BR /&gt;Thanks</description>
      <pubDate>Wed, 03 Jun 2009 15:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271708#M49219</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-06-03T15:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: SQL BUILDER - How can I include a context variable in the WHERE clause</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271709#M49220</link>
      <description>&lt;FONT size="3"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt;Ok I have read this full thread several time but same as the others there are so many variation that I am completely lost.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt;Here is my query (which does not work)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt;"&lt;/FONT&gt;&lt;FONT color="#3220a0"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#b22200"&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;*&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#3220a0"&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;WHERE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt; full_path &lt;/FONT&gt;&lt;FONT color="#3220a0"&gt;like&lt;/FONT&gt;&lt;FONT color="#000000"&gt; '" &lt;/FONT&gt;&lt;FONT color="#b22200"&gt;+&lt;/FONT&gt;&lt;FONT color="#000000"&gt; ((String)globalMap.get("tFileList_2_CURRENT_FILEPATH")) &lt;/FONT&gt;&lt;FONT color="#b22200"&gt;+&lt;/FONT&gt;&lt;FONT color="#000000"&gt; "'"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt;Which does not work because of the " in the get function.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt;So I thought to escape the " like this&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt;"&lt;/FONT&gt;&lt;FONT color="#3220a0"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#b22200"&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;*&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#3220a0"&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;WHERE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt; full_path &lt;/FONT&gt;&lt;FONT color="#3220a0"&gt;like&lt;/FONT&gt;&lt;FONT color="#000000"&gt; '" &lt;/FONT&gt;&lt;FONT color="#b22200"&gt;+&lt;/FONT&gt;&lt;FONT color="#000000"&gt; ((String)globalMap.get(\"tFileList_2_CURRENT_FILEPATH\")) &lt;/FONT&gt;&lt;FONT color="#b22200"&gt;+&lt;/FONT&gt;&lt;FONT color="#000000"&gt; "'"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt;also a fail so how about this&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt;"&lt;/FONT&gt;&lt;FONT color="#3220a0"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#b22200"&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;*&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#3220a0"&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;WHERE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt; full_path &lt;/FONT&gt;&lt;FONT color="#3220a0"&gt;like&lt;/FONT&gt;&lt;FONT color="#000000"&gt; \"" &lt;/FONT&gt;&lt;FONT color="#b22200"&gt;+&lt;/FONT&gt;&lt;FONT color="#000000"&gt; ((String)globalMap.get(\"tFileList_2_CURRENT_FILEPATH\")) &lt;/FONT&gt;&lt;FONT color="#b22200"&gt;+&lt;/FONT&gt;&lt;FONT color="#000000"&gt; "\""&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt;fail&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt;"&lt;/FONT&gt;&lt;FONT color="#3220a0"&gt;select&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#b22200"&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;*&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#3220a0"&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;WHERE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt; full_path &lt;/FONT&gt;&lt;FONT color="#3220a0"&gt;like&lt;/FONT&gt;&lt;FONT color="#000000"&gt; \"" &lt;/FONT&gt;&lt;FONT color="#b22200"&gt;+&lt;/FONT&gt;&lt;FONT color="#000000"&gt; ((String)globalMap.get("tFileList_2_CURRENT_FILEPATH")) &lt;/FONT&gt;&lt;FONT color="#b22200"&gt;+&lt;/FONT&gt;&lt;FONT color="#000000"&gt; "\""&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt;fail&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt;From the thread is appears clear that the issue is with the quote but which one.....&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="3"&gt;&lt;FONT face="" times="" new="" roman=""&gt;&lt;FONT color="#000000"&gt;This is driving me mad, any suggestions&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#000000"&gt;&lt;FONT size="3"&gt;&lt;FONT face="Calibri"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:55:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SQL-BUILDER-How-can-I-include-a-context-variable-in-the-WHERE/m-p/2271709#M49220</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2016-02-17T20:55:50Z</dc:date>
    </item>
  </channel>
</rss>

