<?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 add a &amp;quot;where&amp;quot; condition in toracleinput request in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227397#M19022</link>
    <description>&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;&lt;DIV class="MessageSubject"&gt;Hi everyone.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-tooltip-trigger"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;I'm a new one in Talend.&lt;/P&gt;&lt;P&gt;And I want to ask you , how to add a "where" condition in tOracleinput via tJava.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 21 Aug 2018 08:39:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-21T08:39:42Z</dc:date>
    <item>
      <title>How to add a "where" condition in toracleinput request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227397#M19022</link>
      <description>&lt;DIV class="lia-message-subject lia-component-message-view-widget-subject"&gt;&lt;DIV class="MessageSubject"&gt;Hi everyone.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="lia-message-body lia-tooltip-trigger"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;I'm a new one in Talend.&lt;/P&gt;&lt;P&gt;And I want to ask you , how to add a "where" condition in tOracleinput via tJava.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Aug 2018 08:39:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227397#M19022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-21T08:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a "where" condition in toracleinput request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227398#M19023</link>
      <description>can you define your job? what do you need exactly? tJava is not here for that!</description>
      <pubDate>Tue, 21 Aug 2018 08:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227398#M19023</guid>
      <dc:creator>fdenis</dc:creator>
      <dc:date>2018-08-21T08:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a "where" condition in toracleinput request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227399#M19024</link>
      <description>&lt;P&gt;Here is my job. I want to define the condition dynamically by the code in tJava. It's possible?&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LtYN"&gt;Capture.PNG&lt;/A&gt;</description>
      <pubDate>Tue, 21 Aug 2018 08:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227399#M19024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-21T08:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a "where" condition in toracleinput request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227400#M19025</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOhLAAW"&gt;@Mialy&lt;/A&gt;,use tJavarow and generate the values which you want and then use flowtoIterate component from&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;flowtoIterate&amp;nbsp; to connect to Oracleinput component,where in&amp;nbsp;query of Basic settings tab , use that flowtoiterate current value in where condition.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 09:02:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227400#M19025</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-08-21T09:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a "where" condition in toracleinput request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227401#M19026</link>
      <description>&lt;P&gt;Can you give me a concrete example please?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 09:05:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227401#M19026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-21T09:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a "where" condition in toracleinput request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227402#M19027</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; In the tjava component, you will have to provide basic if-else conditions to verify whether data is present for each column you are planning to compare. If the data is not present, populate the target context variable for each incoming column as empty string&amp;nbsp; else populate the context variable with inbound value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; Once all parameters are checked, concatenate them and connect all the corresponding context variables in your tOracleinput component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;pseudo logic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;context.where="where ";&lt;/P&gt;
&lt;P&gt;if (var1_input&amp;nbsp;is null)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; context.var1="";&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/P&gt;
&lt;P&gt;else&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; context.var1= "table_name.col1="+var1_input;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/P&gt;
&lt;P&gt;Similarly for next columns also... But please note that first column having not null should be prefixed with "where " and after that you need to use "and " to join the columns (you need to add logic here)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so final where clause will be:-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;context.condition=context.where+context.var1+ context.and+context.var2...... etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add this condition in the where clause of the tOracleinput.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"select * from employee "+ context.condition;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the answer has helped you to resolve the issue, could you please mark the topic as solution provided?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warm Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nikhil&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 21:21:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227402#M19027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-22T21:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a "where" condition in toracleinput request</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227403#M19028</link>
      <description>&lt;P&gt;Thank you guys &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;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 07:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-add-a-quot-where-quot-condition-in-toracleinput-request/m-p/2227403#M19028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-23T07:03:27Z</dc:date>
    </item>
  </channel>
</rss>

