<?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 to Oracle DB in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754667#M660350</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your comment, however I am using the same ODBC driver with SQL Developer to this database with no errors.&amp;nbsp; If QLIK is simply passing the SQL I would assume I would get no errors too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Mar 2015 18:00:14 GMT</pubDate>
    <dc:creator>kstroupe</dc:creator>
    <dc:date>2015-03-19T18:00:14Z</dc:date>
    <item>
      <title>SQL to Oracle DB</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754665#M660348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a query which runs just fine in other SQL tools outside of QLIK. When I run the FULL SQL through QLIK to the Oracle DB no data is returned in the QVD. If parsed out the part where I think QLIK is having an issue and I receive an error message in QLIK but no error message in other SQL Tools outside of QLIK. There error in QLIK is ODBC read failed. It occurs when I add the INNER JOIN from EDW_STAGE.STG_F_BASE_CAPACITY_PLAN to DT_PROD_ORDER_FROZEN by is Any help is appreciated.&lt;/P&gt;&lt;P&gt;The below script works and returns one row in QLIK. When I try to use the commented part of this I receive an ODBC read error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TEST:&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #0000ff; font-size: 8pt;"&gt;select&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; * from&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//EDW_STAGE.STG_F_BASE_CAPACITY_PLAN&lt;BR /&gt; //INNER JOIN &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;( &lt;BR /&gt; select &lt;BR /&gt; x.prodn_ordr_no, &lt;BR /&gt; y.d_part_master_id, &lt;BR /&gt; y.d_wbs_element_id, &lt;BR /&gt; y.actual_finish_dt, &lt;BR /&gt; y.tot_ordr_qty, &lt;BR /&gt; y.capacity_id, &lt;BR /&gt; y.prodn_ordr_type_cd&lt;BR /&gt; from&lt;BR /&gt; ((&lt;BR /&gt; select &lt;BR /&gt; EDW.F_BASE_PRODUCTION_ORDER.prodn_ordr_no, &lt;BR /&gt; max(EDW.F_BASE_PRODUCTION_ORDER.ordr_last_updt_dttm) as maxdate&lt;BR /&gt; from&lt;BR /&gt; EDW.F_BASE_PRODUCTION_ORDER where &lt;BR /&gt; EDW.F_BASE_PRODUCTION_ORDER.prodn_ordr_no = '000024854815' &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;group by EDW.F_BASE_PRODUCTION_ORDER.prodn_ordr_no)x&lt;BR /&gt; left join&lt;BR /&gt; (&lt;BR /&gt; select &lt;BR /&gt; edw.f_base_production_order.prodn_ordr_no, &lt;BR /&gt; edw.f_base_production_order.d_part_master_id, &lt;BR /&gt; edw.f_base_production_order.d_wbs_element_id, &lt;BR /&gt; edw.f_base_production_order.actual_finish_dt, &lt;BR /&gt; edw.f_base_production_order.tot_ordr_qty, &lt;BR /&gt; edw.f_base_production_order.capacity_id, &lt;BR /&gt; edw.f_base_production_order.ordr_last_updt_dttm,&lt;BR /&gt; edw.f_base_production_order.prodn_ordr_type_cd&lt;BR /&gt; from edw.f_base_production_order ) y &lt;BR /&gt; on x.prodn_ordr_no = y.prodn_ordr_no and x.maxdate = y.ordr_last_updt_dttm&lt;BR /&gt; ) where y.actual_finish_dt is null&lt;BR /&gt; ) DT_PROD_ORDER_FROZEN &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008000; font-size: 8pt;"&gt;//ON (EDW_STAGE.STG_F_BASE_CAPACITY_PLAN.CAPACITY_ID=DT_PROD_ORDER_FROZEN.CAPACITY_ID)&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 17:39:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754665#M660348</guid>
      <dc:creator>kstroupe</dc:creator>
      <dc:date>2015-03-19T17:39:47Z</dc:date>
    </item>
    <item>
      <title>Re: SQL to Oracle DB</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754666#M660349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Whatever the problem is, it is not caused by Qlikview. Qlikview merely passes the sql statement to the odbc driver. Possibly the odbc driver cannot handle what the oracle dbms returns. Perhaps a &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;SQL_LONGVARBINARY&lt;/SPAN&gt; column: &lt;A _jive_internal="true" href="https://community.qlik.com/message/12234#12234" title="http://community.qlik.com/message/12234#12234"&gt;http://community.qlik.com/message/12234#12234&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 17:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754666#M660349</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-19T17:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL to Oracle DB</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754667#M660350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your comment, however I am using the same ODBC driver with SQL Developer to this database with no errors.&amp;nbsp; If QLIK is simply passing the SQL I would assume I would get no errors too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 18:00:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754667#M660350</guid>
      <dc:creator>kstroupe</dc:creator>
      <dc:date>2015-03-19T18:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQL to Oracle DB</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754668#M660351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQL Developer does NOT use the odbc driver. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 18:05:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754668#M660351</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2015-03-19T18:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQL to Oracle DB</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754669#M660352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check if you have two columns with same name, this cause a ODBC general error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 18:14:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754669#M660352</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-03-19T18:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL to Oracle DB</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754670#M660353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As good practice always list all columns you´re retrieving, don´t use "select *"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 18:20:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754670#M660353</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-03-19T18:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQL to Oracle DB</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754671#M660354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Clever yes I replaced the select * with &lt;/P&gt;&lt;P&gt;EDW_STAGE.STG_F_BASE_CAPACITY_PLAN.CAPACITY_ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This ran the SQL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 18:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754671#M660354</guid>
      <dc:creator>kstroupe</dc:creator>
      <dc:date>2015-03-19T18:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: SQL to Oracle DB</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754672#M660355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good to read that &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2015 18:34:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-to-Oracle-DB/m-p/754672#M660355</guid>
      <dc:creator>Clever_Anjos</dc:creator>
      <dc:date>2015-03-19T18:34:18Z</dc:date>
    </item>
  </channel>
</rss>

