<?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 Year command reading Oracle using Qlik ODBC Connector Package in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Year-command-reading-Oracle-using-Qlik-ODBC-Connector-Package/m-p/1059291#M16946</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;Just installed Qlik ODBC Connector Package and seems to work great.&lt;/P&gt;&lt;P&gt;I wanted to load a large transactional table and limit it for all records since 1/1/2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: terminal,monaco;"&gt;[Sales]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;LOAD ITEM_CODE, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; M_SALESDATE, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; M_CARD_SEQ_NO, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt; ........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;SELECT "ITEM_CODE", &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "M_SALESDATE", &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "M_CARD_SEQ_NO", &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;FROM "SCORC"."TMP_ALL_SALES"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;&lt;STRONG&gt;WHERE YEAR("M_SALESDATE") &amp;gt; 2013&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and this produced the error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; background-color: rgba(255,38,38,0.2);"&gt;&amp;nbsp; ERROR [42S22] [Qlik][ODBC Oracle Wire Protocol driver][Oracle]ORA-00904: "YEAR": invalid identifier&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt; &lt;/DIV&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt;"M_SALESDATE" is a datetime field&lt;/DIV&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt; &lt;/DIV&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt;I also tried with and without quotes for the field name.&lt;/DIV&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt; &lt;/DIV&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt;Next I tried the Oracle specific:&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;STRONG&gt;WHERE EXTRACT (year FROM M_SALESDATE) &amp;gt; 2013&lt;/STRONG&gt;&lt;P&gt;and&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;WHERE EXTRACT (year FROM DATE "M_SALESDATE") &amp;gt; 2013&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and got &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff6600;"&gt;ERROR [HY000] [Qlik][ODBC Oracle Wire Protocol driver][Oracle]ORA-00936: missing expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now I am running out of options - can someone help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Jan 2016 08:25:28 GMT</pubDate>
    <dc:creator>alexis</dc:creator>
    <dc:date>2016-01-23T08:25:28Z</dc:date>
    <item>
      <title>Year command reading Oracle using Qlik ODBC Connector Package</title>
      <link>https://community.qlik.com/t5/App-Development/Year-command-reading-Oracle-using-Qlik-ODBC-Connector-Package/m-p/1059291#M16946</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;Just installed Qlik ODBC Connector Package and seems to work great.&lt;/P&gt;&lt;P&gt;I wanted to load a large transactional table and limit it for all records since 1/1/2014.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I started with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: terminal,monaco;"&gt;[Sales]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;LOAD ITEM_CODE, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; M_SALESDATE, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; M_CARD_SEQ_NO, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt; ........&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;SELECT "ITEM_CODE", &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "M_SALESDATE", &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "M_CARD_SEQ_NO", &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;......&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;FROM "SCORC"."TMP_ALL_SALES"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;&lt;STRONG&gt;WHERE YEAR("M_SALESDATE") &amp;gt; 2013&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: terminal,monaco; font-size: 8pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and this produced the error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; font-family: 'Courier New'; font-size: 15px; font-style: normal; font-weight: normal; text-align: start; text-indent: 0px; background-color: rgba(255,38,38,0.2);"&gt;&amp;nbsp; ERROR [42S22] [Qlik][ODBC Oracle Wire Protocol driver][Oracle]ORA-00904: "YEAR": invalid identifier&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt; &lt;/DIV&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt;"M_SALESDATE" is a datetime field&lt;/DIV&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt; &lt;/DIV&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt;I also tried with and without quotes for the field name.&lt;/DIV&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt; &lt;/DIV&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt;Next I tried the Oracle specific:&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;STRONG&gt;WHERE EXTRACT (year FROM M_SALESDATE) &amp;gt; 2013&lt;/STRONG&gt;&lt;P&gt;and&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;WHERE EXTRACT (year FROM DATE "M_SALESDATE") &amp;gt; 2013&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and got &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff6600;"&gt;ERROR [HY000] [Qlik][ODBC Oracle Wire Protocol driver][Oracle]ORA-00936: missing expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now I am running out of options - can someone help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Alexis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="ajR" data-tooltip="Show trimmed content"&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2016 08:25:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-command-reading-Oracle-using-Qlik-ODBC-Connector-Package/m-p/1059291#M16946</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2016-01-23T08:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Year command reading Oracle using Qlik ODBC Connector Package</title>
      <link>https://community.qlik.com/t5/App-Development/Year-command-reading-Oracle-using-Qlik-ODBC-Connector-Package/m-p/1059292#M16947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;WHERE EXTRACT (year FROM DATE "M_SALESDATE") &amp;gt; 2013&lt;/P&gt;

&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That's looks correct to me. But if that refuses to work then you can try using a date instead:&lt;/P&gt;&lt;P&gt;WHERE M_SALESDATE &amp;gt;= TO_DATE('2014-01-01','YYYY-MM-DD').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If necessary you can also put the where clause in the preceding load:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: terminal, monaco;"&gt;[Sales]:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: terminal, monaco;"&gt;LOAD ITEM_CODE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; M_SALESDATE,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; M_CARD_SEQ_NO,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: terminal, monaco;"&gt;........&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-size: 10.6667px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;STRONG&gt;WHERE YEAR("M_SALESDATE") &amp;gt; 2013&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: terminal, monaco;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: terminal, monaco;"&gt;SELECT "ITEM_CODE",&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "M_SALESDATE",&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: terminal, monaco;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; "M_CARD_SEQ_NO",&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: terminal, monaco;"&gt;......&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 8pt; font-family: terminal, monaco;"&gt;FROM "SCORC"."TMP_ALL_SALES"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jan 2016 10:55:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-command-reading-Oracle-using-Qlik-ODBC-Connector-Package/m-p/1059292#M16947</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-23T10:55:37Z</dc:date>
    </item>
    <item>
      <title>Re: Year command reading Oracle using Qlik ODBC Connector Package</title>
      <link>https://community.qlik.com/t5/App-Development/Year-command-reading-Oracle-using-Qlik-ODBC-Connector-Package/m-p/1059293#M16948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestion - the approach you suggest still involves the &lt;SPAN style="text-decoration: underline;"&gt;entire&lt;/SPAN&gt; data set to be read in before it decides whether it qualifies for inclusion or not. With 10s of millions of records this approach is not desirable/possible..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;alexis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 15:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-command-reading-Oracle-using-Qlik-ODBC-Connector-Package/m-p/1059293#M16948</guid>
      <dc:creator>alexis</dc:creator>
      <dc:date>2016-01-25T15:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Year command reading Oracle using Qlik ODBC Connector Package</title>
      <link>https://community.qlik.com/t5/App-Development/Year-command-reading-Oracle-using-Qlik-ODBC-Connector-Package/m-p/1059294#M16949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The first suggestion doesn't involve the entire data set since that where clause is part of the sql select statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jan 2016 16:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Year-command-reading-Oracle-using-Qlik-ODBC-Connector-Package/m-p/1059294#M16949</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-01-25T16:49:05Z</dc:date>
    </item>
  </channel>
</rss>

