<?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 don't select date range in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757840#M666933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;weird !!&lt;/P&gt;&lt;P&gt;you are getting an OLEDB error&lt;/P&gt;&lt;P&gt;then it is not syntax error it is connection error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Nov 2014 11:27:13 GMT</pubDate>
    <dc:creator>ali_hijazi</dc:creator>
    <dc:date>2014-11-17T11:27:13Z</dc:date>
    <item>
      <title>SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757831#M666924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How would I adapt the following script to &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;exclude&lt;/STRONG&gt;&lt;/SPAN&gt; rows where the SessionStartedDate was in the range 2014-11-03 and 2014-11-09?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;UNQUALIFY SessionStartedDate;&lt;/P&gt;&lt;P&gt;DaySummary:&lt;/P&gt;&lt;P&gt;LOAD &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(DayStart(Date(Date,'DD/MM/YYYY')),'YYYY-MM-DD') As SessionStartedDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Users,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Disconnects,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Reconnects,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WorkingDayDisconnects,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WorkingDayReconnects;&lt;/P&gt;&lt;P&gt;SQL Execute [dbo].[DaySummary];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNQUALIFY *;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 10:24:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757831#M666924</guid>
      <dc:creator />
      <dc:date>2014-11-17T10:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757832#M666925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;temp_table:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;your_fields&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;num(DayStart(Date)) as SessionStartedDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;sql execute [DBO].[DaySummary];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table:&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;load * resident temp_table&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where SessionStartedDate &amp;gt;num(daystart(makeDate(2014,11,3))) and SessionStartedDate &amp;lt; num(dayStart(makedate(2014,11,9)))&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;drop table temp_table;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 10:34:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757832#M666925</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-11-17T10:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757833#M666926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;have you got the &amp;lt; and &amp;gt; signs the wrong way round though? I need to EXCLUDE data from that week, not include it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 10:43:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757833#M666926</guid>
      <dc:creator />
      <dc:date>2014-11-17T10:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757834#M666927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then in the where condition put the following &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;where SessionStartedDate &amp;lt;=num(daystart(makeDate(2014,11,3))) or&amp;nbsp; SessionStartedDate &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;gt;= num(dayStart(makedate(2014,11,9)))&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 10:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757834#M666927</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-11-17T10:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757835#M666928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also need to to keep the date in the same format, as it it links to another table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way of doing it without altering the the format of the SessionStartedDate field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 10:49:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757835#M666928</guid>
      <dc:creator />
      <dc:date>2014-11-17T10:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757836#M666929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;keep your SessionStartedDate as is&lt;/P&gt;&lt;P&gt;and my column above name it anything you want and apply the condition on my column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I prefer to have the dates in the QlikView format (numbers) and I format them on the chart for end users&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 10:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757836#M666929</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-11-17T10:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757837#M666930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get this error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB read failed&lt;/P&gt;&lt;P&gt;SQL Execute [dbo].[DaySummary]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which is strange as I don't get it when I run the script i posted in my original question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:15:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757837#M666930</guid>
      <dc:creator />
      <dc:date>2014-11-17T11:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757838#M666931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you send me a screen shot of your script to detect any error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:19:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757838#M666931</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-11-17T11:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757839#M666932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;UNQUALIFY SessionStartedDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp_table:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(DayStart(Date(Date,'DD/MM/YYYY')),'YYYY-MM-DD') As SessionStartedDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Users,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Disconnects,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Reconnects,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WorkingDayDisconnects,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WorkingDayReconnects,&lt;/P&gt;&lt;P&gt;num(DayStart(Date)) as SessionStartedDate;&lt;/P&gt;&lt;P&gt;SQL Execute [dbo].[DaySummary];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DaySummary:&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;load * resident temp_table&lt;/P&gt;&lt;P&gt;where SessionStartedDate &amp;lt;num(daystart(makeDate(2014,11,3))) or&amp;nbsp; SessionStartedDate&amp;gt; num(dayStart(makedate(2014,11,9)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table temp_table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNQUALIFY *;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:21:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757839#M666932</guid>
      <dc:creator />
      <dc:date>2014-11-17T11:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757840#M666933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;weird !!&lt;/P&gt;&lt;P&gt;you are getting an OLEDB error&lt;/P&gt;&lt;P&gt;then it is not syntax error it is connection error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:27:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757840#M666933</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-11-17T11:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757841#M666934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;FYI&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;QUALIFY *;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;UNQUALIFY SessionStartedDate;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;temp_table:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; Date(DayStart(Date(Date,'DD/MM/YYYY')),'YYYY-MM-DD') As SessionStartedDate,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num(DayStart(Date)) as _SessionStartedDate&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; Users,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; Disconnects,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; Reconnects,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; WorkingDayDisconnects,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; WorkingDayReconnects,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;num(DayStart(Date)) as SessionStartedDate;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;SQL Execute [dbo].[DaySummary];&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;DaySummary:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;noconcatenate&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;load * resident temp_table&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;where &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;_SessionStartedDate&lt;/STRONG&gt;&amp;lt;num(daystart(makeDate(2014,11,3))) or&amp;nbsp; &lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px;"&gt;_SessionStartedDate&lt;/STRONG&gt;&amp;gt; num(dayStart(makedate(2014,11,9)));&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;drop table temp_table;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;UNQUALIFY *;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:29:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757841#M666934</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-11-17T11:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757842#M666935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This could be concatenate or case sensitive issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Normally Qlikview database connect syntaxes are very case sensitive. Check that execute statement case, if that's working fine. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use aliases of columns from parent table in temp table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:30:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757842#M666935</guid>
      <dc:creator />
      <dc:date>2014-11-17T11:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757843#M666936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;same error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB read failed&lt;/P&gt;&lt;P&gt;SQL Execute [dbo].[DaySummary]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:55:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757843#M666936</guid>
      <dc:creator />
      <dc:date>2014-11-17T11:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757844#M666937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I get a different error now&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Field not found - &amp;lt;_SessionStartedDate&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;DaySummary:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;noconcatenate&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;load * resident temp_table&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;where _SessionStartedDate &amp;lt;num(daystart(makeDate(2014,11,3))) or&amp;nbsp; _SessionStartedDate &amp;gt; num(dayStart(makedate(2014,11,9)))&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the whole script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QUALIFY *;&lt;/P&gt;&lt;P&gt;UNQUALIFY SessionStartedDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp_table:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;&amp;nbsp; Date(DayStart(Date(Date,'DD/MM/YYYY')),'YYYY-MM-DD') As SessionStartedDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; num(DayStart(Date)) as _SessionStartedDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Users,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Disconnects,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Reconnects,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WorkingDayDisconnects,&lt;/P&gt;&lt;P&gt;&amp;nbsp; WorkingDayReconnects;&lt;/P&gt;&lt;P&gt;SQL Execute [dbo].[DaySummary];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DaySummary:&lt;/P&gt;&lt;P&gt;noconcatenate&lt;/P&gt;&lt;P&gt;load * resident temp_table&lt;/P&gt;&lt;P&gt;where _SessionStartedDate &amp;lt;num(daystart(makeDate(2014,11,3))) or&amp;nbsp; _SessionStartedDate &amp;gt; num(dayStart(makedate(2014,11,9)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table temp_table;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;UNQUALIFY *;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 12:15:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757844#M666937</guid>
      <dc:creator />
      <dc:date>2014-11-17T12:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757845#M666938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should un qualify this field too&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 12:36:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757845#M666938</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-11-17T12:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757846#M666939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script runs OK. So thanks for that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But all the other fields in the table have been renamed to include the temp table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example DaySummary.Disconnects have been renamed to DaySummary.temp_table.Disconnects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i get rid of the temp_table bit?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 12:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757846#M666939</guid>
      <dc:creator />
      <dc:date>2014-11-17T12:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: SQL don't select date range</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757847#M666940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;QUALIFY *;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;UNQUALIFY SessionStartedDate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;temp_table:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; Date(DayStart(Date(Date,'DD/MM/YYYY')),'YYYY-MM-DD') As SessionStartedDate,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; num(DayStart(Date)) as _SessionStartedDate,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; Users,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; Disconnects,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; Reconnects,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; WorkingDayDisconnects,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; WorkingDayReconnects;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;SQL Execute [dbo].[DaySummary];&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;STRONG&gt; unqualify *;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;DaySummary:&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;noconcatenate&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;load * resident temp_table&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;where _SessionStartedDate &amp;lt;num(daystart(makeDate(2014,11,3))) or&amp;nbsp; _SessionStartedDate &amp;gt; num(dayStart(makedate(2014,11,9)));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;drop table temp_table;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 12:57:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-don-t-select-date-range/m-p/757847#M666940</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-11-17T12:57:53Z</dc:date>
    </item>
  </channel>
</rss>

