<?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: Where Exists() within a Oracle connection in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Where-Exists-within-a-Oracle-connection/m-p/51446#M3448</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will the answer you provided only pull records from the data base that match the loaded fields in memory? The table I am pulling from is huge and I'm trying to avoid pulling everything that matches my SQL LOAD where. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was asking for the Oracle version of the Exists function. Below is an example of the&amp;nbsp; statement it was looking for. I kept getting an error message&amp;nbsp; like this "&amp;nbsp; ErrorCode: 928, ErrorMsg:[Oracle][ODBC][Ora]ORA-00928: missing SELECT keyword". This makes sense being that I just had a field in the Exists() function&amp;nbsp; but it was looking for a sub-query. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P style="margin-bottom: 8.25pt; background: #E8EAF6;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Consolas; color: #333333;"&gt;SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8.25pt; background: #E8EAF6;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Consolas; color: #333333;"&gt;FROM customers&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8.25pt; background: #E8EAF6;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Consolas; color: #333333;"&gt;WHERE EXISTS (SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8.25pt; background: #E8EAF6;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Consolas; color: #333333;"&gt; FROM order_details&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8.25pt; background: #E8EAF6;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Consolas; color: #333333;"&gt; WHERE customers.customer_id = order_details.customer_id);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2018 16:36:30 GMT</pubDate>
    <dc:creator>jusrober</dc:creator>
    <dc:date>2018-04-17T16:36:30Z</dc:date>
    <item>
      <title>Where Exists() within a Oracle connection</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Exists-within-a-Oracle-connection/m-p/51444#M3446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am stumped how to get this to work. I have searched for hours. I am trying to limit the records I pull from the oracle database&amp;nbsp; with a where exists() on a table loaded into memory.&amp;nbsp; This is the code I currently have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[V_F_STO_INV_Temp]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PROD_SEQ",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "STO_SEQ",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "SN",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ON",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ON_DY",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "MIN",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "MIN_S",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "MAX"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;SQL&amp;nbsp; SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "PROD_SEQ",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "STO_SEQ",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "SN",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ON",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ON_DY",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "MIN",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "MIN_S",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "MAX"&lt;/P&gt;&lt;P&gt;FROM &lt;EM&gt;Oracle.File&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SNAPSHOT_DT &amp;gt;= TO_DATE('$(v.MSTRT)','DD/MM/YYYY HH24:MI:SS')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and SNAPSHOT_DT &amp;lt;= TO_DATE('$(v.MEND)','DD/MM/YYYY HH24:MI:SS')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and ON = '0'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and EXISTS(PROD_SEQ) and EXISTS(STO_SEQ)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt; ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The problem here is that it wants the Oracle version of Where Exists(). So it is looking for a sub-query. The table I need to constrain it against is in memory. Is there a way for me to make it use the QL version of Exists() or maybe a Oracle function that would allow me to only pulling matching records to STO_SEQ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 15:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Exists-within-a-Oracle-connection/m-p/51444#M3446</guid>
      <dc:creator>jusrober</dc:creator>
      <dc:date>2018-04-17T15:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Where Exists() within a Oracle connection</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Exists-within-a-Oracle-connection/m-p/51445#M3447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you're trying to place your WHERE.. in a wrong place, which is your SQL LOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't know the functions and the syntax of your&amp;nbsp; database engine, you can replace all the existing where clause used above with a QLIK WHERE condition that you should put under the LOAD statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, what do yo mean by "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;The problem here is that it wants the Oracle version of Where Exists()&lt;/SPAN&gt;" ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 15:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Exists-within-a-Oracle-connection/m-p/51445#M3447</guid>
      <dc:creator>YoussefBelloum</dc:creator>
      <dc:date>2018-04-17T15:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: Where Exists() within a Oracle connection</title>
      <link>https://community.qlik.com/t5/App-Development/Where-Exists-within-a-Oracle-connection/m-p/51446#M3448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will the answer you provided only pull records from the data base that match the loaded fields in memory? The table I am pulling from is huge and I'm trying to avoid pulling everything that matches my SQL LOAD where. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was asking for the Oracle version of the Exists function. Below is an example of the&amp;nbsp; statement it was looking for. I kept getting an error message&amp;nbsp; like this "&amp;nbsp; ErrorCode: 928, ErrorMsg:[Oracle][ODBC][Ora]ORA-00928: missing SELECT keyword". This makes sense being that I just had a field in the Exists() function&amp;nbsp; but it was looking for a sub-query. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P style="margin-bottom: 8.25pt; background: #E8EAF6;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Consolas; color: #333333;"&gt;SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8.25pt; background: #E8EAF6;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Consolas; color: #333333;"&gt;FROM customers&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8.25pt; background: #E8EAF6;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Consolas; color: #333333;"&gt;WHERE EXISTS (SELECT *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8.25pt; background: #E8EAF6;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Consolas; color: #333333;"&gt; FROM order_details&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 8.25pt; background: #E8EAF6;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: Consolas; color: #333333;"&gt; WHERE customers.customer_id = order_details.customer_id);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 16:36:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Where-Exists-within-a-Oracle-connection/m-p/51446#M3448</guid>
      <dc:creator>jusrober</dc:creator>
      <dc:date>2018-04-17T16:36:30Z</dc:date>
    </item>
  </channel>
</rss>

