<?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 Oracle subquery within QV script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Oracle-subquery-within-QV-script/m-p/217606#M70792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out that I had an Oracle comment in the script (not shown here). Between QV &amp;amp; Oracle it could not figure out what -- Meant. When I remove the line I was able to run the query from QV into Oracle.&lt;/P&gt;&lt;P&gt;Cisco &amp;amp; Roland thanks for the help. I used both suggestions as well as got rid of the comments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Dec 2010 01:40:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-09T01:40:04Z</dc:date>
    <item>
      <title>Oracle subquery within QV script</title>
      <link>https://community.qlik.com/t5/QlikView/Oracle-subquery-within-QV-script/m-p/217602#M70788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a huge table that I am trying to pre-condense into QV. Normally I would do the heavy lifting in QV, but I run out of memory. Now I have a Oracle (11g) query that works fine. When I copy &amp;amp; paste into QV the query fails. Error QL error: ORA-00907: missing right parenthesis...&lt;/P&gt;&lt;P&gt;When run in Oracle this query gives me exactly what I need, what did I miss bringing it into QV? I know once in QV I can bring in about 50 million rows with no problem. The original db has 500 million rows no way is it going to all fit into QV.&lt;/P&gt;&lt;P&gt;Here's the Oracle query...&lt;/P&gt;&lt;P&gt;Select&lt;BR /&gt; i.cpid,&lt;BR /&gt; i.model,&lt;BR /&gt; i.install_method,&lt;BR /&gt; i.os,&lt;BR /&gt; i.Code,&lt;BR /&gt; sub_query.DT&lt;BR /&gt;From R_externalim.logging i&lt;/P&gt;&lt;P&gt;inner join&lt;BR /&gt;(Select&lt;BR /&gt;l.Pin,&lt;BR /&gt;l.code,&lt;BR /&gt;Min(l.Download_time) as DT&lt;BR /&gt;from r_externalim.Logging l&lt;BR /&gt;where l.download_time &amp;gt;= add_months(SysDate, -3)&lt;BR /&gt;group by l.code, l.pin ) sub_query&lt;BR /&gt;on sub_query.pin = i.pin&lt;BR /&gt;and sub_query.code = i.code&lt;BR /&gt;and sub_query.DT = i.download_time&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 15:50:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oracle-subquery-within-QV-script/m-p/217602#M70788</guid>
      <dc:creator />
      <dc:date>2010-12-08T15:50:23Z</dc:date>
    </item>
    <item>
      <title>Oracle subquery within QV script</title>
      <link>https://community.qlik.com/t5/QlikView/Oracle-subquery-within-QV-script/m-p/217603#M70789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Bruce,&lt;/P&gt;&lt;P&gt;from my former oracle days I remember that a missing right parenthesis could have many reasons. I assume that you are able to cp/paste correctly so my first guess is that the oracle driver (odbc or oledb) isn't able to deal correctly with your statement. What if you create a view on the oracle site? This would have an addional effect of reusing it if necessary.&lt;/P&gt;&lt;P&gt;HtH,&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 16:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oracle-subquery-within-QV-script/m-p/217603#M70789</guid>
      <dc:creator />
      <dc:date>2010-12-08T16:00:56Z</dc:date>
    </item>
    <item>
      <title>Oracle subquery within QV script</title>
      <link>https://community.qlik.com/t5/QlikView/Oracle-subquery-within-QV-script/m-p/217604#M70790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;P&gt;That sounds like a good idea, I will ask my db admin if I can add a view onto the db. That way the Oracle driver won't have to deal with extra brackets of a sub-query. I was trying to do directly in QV but I would have 45 million rows /month to deal with.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Smile" src="http://community.qlik.com/emoticons/emotion-1.gif" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 16:52:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oracle-subquery-within-QV-script/m-p/217604#M70790</guid>
      <dc:creator />
      <dc:date>2010-12-08T16:52:09Z</dc:date>
    </item>
    <item>
      <title>Oracle subquery within QV script</title>
      <link>https://community.qlik.com/t5/QlikView/Oracle-subquery-within-QV-script/m-p/217605#M70791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Personally I would write the code something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Select&lt;BR /&gt; i.cpid,&lt;BR /&gt; i.model,&lt;BR /&gt; i.install_method,&lt;BR /&gt; i.os,&lt;BR /&gt; i.Code,&lt;BR /&gt; sub_query.DT&lt;BR /&gt;From R_externalim.logging i&lt;BR /&gt;,(Select&lt;BR /&gt;l.Pin,&lt;BR /&gt;l.code,&lt;BR /&gt;Min(l.Download_time) as DT&lt;BR /&gt;from r_externalim.Logging l&lt;BR /&gt;where l.download_time &amp;gt;= add_months(SysDate, -3)&lt;BR /&gt;group by l.code, l.pin ) sub_query&lt;BR /&gt;WHERE&lt;BR /&gt; sub_query.pin = i.pin&lt;BR /&gt;and sub_query.code = i.code&lt;BR /&gt;and sub_query.DT = i.download_time&lt;BR /&gt;;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 23:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oracle-subquery-within-QV-script/m-p/217605#M70791</guid>
      <dc:creator />
      <dc:date>2010-12-08T23:00:23Z</dc:date>
    </item>
    <item>
      <title>Oracle subquery within QV script</title>
      <link>https://community.qlik.com/t5/QlikView/Oracle-subquery-within-QV-script/m-p/217606#M70792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out that I had an Oracle comment in the script (not shown here). Between QV &amp;amp; Oracle it could not figure out what -- Meant. When I remove the line I was able to run the query from QV into Oracle.&lt;/P&gt;&lt;P&gt;Cisco &amp;amp; Roland thanks for the help. I used both suggestions as well as got rid of the comments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Dec 2010 01:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Oracle-subquery-within-QV-script/m-p/217606#M70792</guid>
      <dc:creator />
      <dc:date>2010-12-09T01:40:04Z</dc:date>
    </item>
  </channel>
</rss>

