<?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 'Im trying to replace IN Condition values from a context varibale in a query inside in a tOracleInput component. How to do that ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285421#M59043</link>
    <description>&lt;P&gt;Below is my query :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select &lt;SPAN&gt;name&lt;/SPAN&gt;,&amp;nbsp;&lt;BR /&gt;(SELECT&amp;nbsp;a&lt;BR /&gt;FROM&amp;nbsp;xyz&lt;BR /&gt;WHERE aaa=bbb&lt;BR /&gt;) "Lost/Not Present/Completed "&lt;/P&gt;
&lt;P&gt;from table1&lt;/P&gt;
&lt;P&gt;where name in ('a','b','c')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have&amp;nbsp;&lt;SPAN&gt;('a','b','c') in my context variable "names" . how should i replace it.&amp;nbsp; i tried in the sql builder using the below query&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"select ...........&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;where name in "+context.names&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Im getting SQLSyntax exception. Is there any other way .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Sep 2018 09:14:25 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-09-14T09:14:25Z</dc:date>
    <item>
      <title>'Im trying to replace IN Condition values from a context varibale in a query inside in a tOracleInput component. How to do that ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285421#M59043</link>
      <description>&lt;P&gt;Below is my query :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select &lt;SPAN&gt;name&lt;/SPAN&gt;,&amp;nbsp;&lt;BR /&gt;(SELECT&amp;nbsp;a&lt;BR /&gt;FROM&amp;nbsp;xyz&lt;BR /&gt;WHERE aaa=bbb&lt;BR /&gt;) "Lost/Not Present/Completed "&lt;/P&gt;
&lt;P&gt;from table1&lt;/P&gt;
&lt;P&gt;where name in ('a','b','c')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have&amp;nbsp;&lt;SPAN&gt;('a','b','c') in my context variable "names" . how should i replace it.&amp;nbsp; i tried in the sql builder using the below query&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"select ...........&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;where name in "+context.names&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Im getting SQLSyntax exception. Is there any other way .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 09:14:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285421#M59043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-14T09:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: 'Im trying to replace IN Condition values from a context varibale in a query inside in a tOracleInput component. How to do that ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285422#M59044</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOlvAAG"&gt;@rathinTalend&lt;/A&gt;,can you try with below way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt;,&amp;nbsp;&lt;BR /&gt;(SELECT&amp;nbsp;a&lt;BR /&gt;FROM&amp;nbsp;xyz&lt;BR /&gt;WHERE aaa=bbb&lt;BR /&gt;) "Lost/Not Present/Completed "&lt;/P&gt;
&lt;P&gt;from table1&lt;/P&gt;
&lt;P&gt;where name in ( +&lt;SPAN&gt;context.names+&lt;/SPAN&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 17 Sep 2018 06:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285422#M59044</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-09-17T06:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: 'Im trying to replace IN Condition values from a context varibale in a query inside in a tOracleInput component. How to do that ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285423#M59045</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"select&amp;nbsp;name,&amp;nbsp;
(SELECT&amp;nbsp;a
FROM&amp;nbsp;xyz
WHERE aaa=bbb
) "Lost/Not Present/Completed "
from table1
where name in (" + context.names + ")"&lt;/PRE&gt;&lt;P&gt;Beware of " to open and clode each part before/after the variable(s).&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 13:10:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285423#M59045</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-09-18T13:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: 'Im trying to replace IN Condition values from a context varibale in a query inside in a tOracleInput component. How to do that ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285424#M59046</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOlvAAG"&gt;@rathinTalend&lt;/A&gt;,&amp;nbsp;did this help?&lt;/P&gt;
&lt;P&gt;If so, thank's to mark your case as solved (Kudos also acceptedas a bonus).&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 15:39:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285424#M59046</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2018-09-18T15:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: 'Im trying to replace IN Condition values from a context varibale in a query inside in a tOracleInput component. How to do that ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285425#M59047</link>
      <description>&lt;P&gt;There is a further change that will be required so that the column alias does not screw up the Java String.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;"select name, 
(SELECT a
FROM xyz
WHERE aaa=bbb
) \"Lost/Not Present/Completed\"
from table1
where name in (" + context.names + ")"&lt;/PRE&gt;&lt;P&gt;Since the column alias is in double quotes, you need to escape these with a \. This is because the SQL is actually a Java String.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 16:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285425#M59047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-18T16:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: 'Im trying to replace IN Condition values from a context varibale in a query inside in a tOracleInput component. How to do that ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285426#M59048</link>
      <description>&lt;P&gt;Did this solution work for you?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 10:52:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285426#M59048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-19T10:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: 'Im trying to replace IN Condition values from a context varibale in a query inside in a tOracleInput component. How to do that ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285427#M59049</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks rhall , i just found out the solution and forgot to post my answer over here. (Y) . Escape sequence did the trick&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 15:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Im-trying-to-replace-IN-Condition-values-from-a-context-varibale/m-p/2285427#M59049</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-09-19T15:33:37Z</dc:date>
    </item>
  </channel>
</rss>

