<?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 select by year in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396235#M700270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;As a test can you try the following SQL to see if it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;DBconsum:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;LOAD *;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;SQL SELECTcast(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;TIME&lt;/SPAN&gt; AS varchar2(40) ) as &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;TIME&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;FROM MYDB."consumption_s"&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;WHERE year(TIME)= 2012 and month(TIME) = 5;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;STORE DBconsum INTO $(vQVDStore)consumption_s_inc.QVD;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Mike&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;QlikView connector which works with 28 datasources and has 300 + validation functions&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;A class="loading" href="http://www.etl-tools.com/etl-tools/qlikview-connector/overview.html"&gt;http://www.etl-tools.com/etl-tools/qlikview-connector/overview.html&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Nov 2012 13:02:33 GMT</pubDate>
    <dc:creator>etl_tools</dc:creator>
    <dc:date>2012-11-02T13:02:33Z</dc:date>
    <item>
      <title>SQL select by year</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396229#M700256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, i have a small problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usually, the whole oracle DB is loaded in a QVD container. &lt;/P&gt;&lt;P&gt;Now, data should be loaded incrementally, so the range of time to be loaded, has to be limited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBconsum:&lt;/P&gt;&lt;P&gt;LOAD *;&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM MYDB."consumption_s"&lt;/P&gt;&lt;P&gt;WHERE year(TIME)= 2012 and month(TIME) = 5&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STORE DBconsum INTO $(vQVDStore)consumption_s_inc.QVD;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;usually, that would be no big deal, its very basic sql. &lt;/P&gt;&lt;P&gt;the timestamp (TIME) has the format "41091,083333333" , which is usually readable by qlikview as "01.07.2012 02:00:00" or just "2012".&lt;/P&gt;&lt;P&gt;but it doesnt seem to work with this sql load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 11:32:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396229#M700256</guid>
      <dc:creator />
      <dc:date>2012-11-02T11:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: SQL select by year</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396230#M700257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you really need a time part?&lt;/P&gt;&lt;P&gt;May be you can just remove it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 11:47:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396230#M700257</guid>
      <dc:creator>etl_tools</dc:creator>
      <dc:date>2012-11-02T11:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL select by year</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396231#M700259</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;etl_tools wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you really need a time part?&lt;/P&gt;&lt;P&gt;May be you can just remove it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;hi mike, im not really understanding your reply. what do you mean by "remove" ?&lt;/P&gt;&lt;P&gt;the TIME field is needet, otherwise, the data makes no sense. &lt;/P&gt;&lt;P&gt;how else is it possible to select, which months to load ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 11:56:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396231#M700259</guid>
      <dc:creator />
      <dc:date>2012-11-02T11:56:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQL select by year</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396232#M700260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;01.07.2012 02:00:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;01.07.2012&lt;/SPAN&gt; &amp;lt;= Date part&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; background-color: #ffffff; font-family: Arial;"&gt;02:00:00&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;= Time Part (Do you use it in your dashboard?)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which database do you work with?&lt;/P&gt;&lt;P&gt;Is it Oracle, MySQL ETC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 12:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396232#M700260</guid>
      <dc:creator>etl_tools</dc:creator>
      <dc:date>2012-11-02T12:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: SQL select by year</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396233#M700262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;an oracle DB is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all parts of the timestamp are used in the dashboard, but that doesnt matter during load. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to load the TIME field (content= "41091,083333333"), get the year, month, and load only record from a certain month in 2012.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 12:17:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396233#M700262</guid>
      <dc:creator />
      <dc:date>2012-11-02T12:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: SQL select by year</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396234#M700265</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;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBconsum:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * WHERE year(TIME)= 2012 and month(TIME) = 'May';&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM MYDB."consumption_s";&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 12:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396234#M700265</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2012-11-02T12:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: SQL select by year</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396235#M700270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;As a test can you try the following SQL to see if it works&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;DBconsum:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;LOAD *;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;SQL SELECTcast(&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;TIME&lt;/SPAN&gt; AS varchar2(40) ) as &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;TIME&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;FROM MYDB."consumption_s"&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;WHERE year(TIME)= 2012 and month(TIME) = 5;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;STORE DBconsum INTO $(vQVDStore)consumption_s_inc.QVD;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;Mike&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;QlikView connector which works with 28 datasources and has 300 + validation functions&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;A class="loading" href="http://www.etl-tools.com/etl-tools/qlikview-connector/overview.html"&gt;http://www.etl-tools.com/etl-tools/qlikview-connector/overview.html&lt;/A&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 13:02:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396235#M700270</guid>
      <dc:creator>etl_tools</dc:creator>
      <dc:date>2012-11-02T13:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: SQL select by year</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396236#M700271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link active_link" href="https://community.qlik.com/people/alex____" id="jive-598035247094868794197" style="background-color: #ffffff; font-size: 12px; color: #007fc0; font-weight: bold; font-family: Arial; text-align: center;"&gt;Alexander&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I probably misunderstood you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you saing that when you try to load the data the script fails with error?&lt;/P&gt;&lt;P&gt;Or the sql does not return any data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 15:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-select-by-year/m-p/396236#M700271</guid>
      <dc:creator>etl_tools</dc:creator>
      <dc:date>2012-11-02T15:06:03Z</dc:date>
    </item>
  </channel>
</rss>

