<?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: help with dates in SQL in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/help-with-dates-in-SQL/m-p/1364868#M616089</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you that worked!&amp;nbsp; Where could I have found information about how to worked with dates as text???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Aug 2017 04:45:47 GMT</pubDate>
    <dc:creator>josephinetedesc</dc:creator>
    <dc:date>2017-08-08T04:45:47Z</dc:date>
    <item>
      <title>help with dates in SQL</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-dates-in-SQL/m-p/1364863#M616084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/759094"&gt;Re: Help with Sql Where Date &amp;amp;gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;I have looked at the discussion above but I need help to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the current script to get the dates I am interested in - however what I want &lt;STRONG&gt;is&lt;/STRONG&gt; &lt;STRONG&gt;not to hard code&lt;/STRONG&gt; the ScheduledDate.&amp;nbsp; I would like to change&amp;nbsp; &lt;SPAN style="color: #ff00ff;"&gt;ScheduledDate &amp;lt; '2017-09-01'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and make it&amp;nbsp; &lt;SPAN style="color: #ff00ff;"&gt;ScheduledDate &amp;lt; today() + 30 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible given that 'today() + 30' is is qlikview but it is part of an SQL select?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aaa:&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM Cccc.dbo.[vwdr_ppDays]&lt;/P&gt;&lt;P&gt;&amp;nbsp; where ScheduledDate &amp;gt;= '2016-01-01' and ScheduledDate &amp;lt; '2017-09-01'&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;STORE&lt;/P&gt;&lt;P&gt;aaa INTO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[aaa.qvd] (qvd);&lt;/P&gt;&lt;P&gt;drop table aaa;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 00:03:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-dates-in-SQL/m-p/1364863#M616084</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2017-08-08T00:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: help with dates in SQL</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-dates-in-SQL/m-p/1364864#M616085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;aaa:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SQL SELECT *&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM Cccc.dbo.[vwdr_ppDays]&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp; where ScheduledDate &amp;gt;= '2016-01-01' and ScheduledDate &amp;lt; &lt;SPAN style="color: #ff0000;"&gt;(SYSDATE + 30)&lt;/SPAN&gt;;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 00:47:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-dates-in-SQL/m-p/1364864#M616085</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-08T00:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: help with dates in SQL</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-dates-in-SQL/m-p/1364865#M616086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let vDate ='Date (Floor (Today ())+30),''YYYY-MM-DD'')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the sql where condition, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;ScheduledDate&amp;lt;'$(vDate)'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;hth&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 28.6924px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sasi&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 01:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-dates-in-SQL/m-p/1364865#M616086</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-08-08T01:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: help with dates in SQL</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-dates-in-SQL/m-p/1364866#M616087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let vDate ='Date(Floor(Today())+30),''YYYY-MM-DD'')';&lt;/P&gt;&lt;P&gt;on using debug this s gives vDate as :"Date(Floor(Today())+30),'YYYY-MM-DD')"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and causes a problem when trying to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let vDate =Date(Floor(Today())+30);&amp;nbsp; this gives the vDate as 7/09/2017 but then the problem is that it is in the wrong format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 02:46:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-dates-in-SQL/m-p/1364866#M616087</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2017-08-08T02:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: help with dates in SQL</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-dates-in-SQL/m-p/1364867#M616088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 27.3776px; background-color: #f2f2f2;"&gt;Let vDate =Date(Floor(Today())+30,'YYYY-MM-DD');&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 03:59:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-dates-in-SQL/m-p/1364867#M616088</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2017-08-08T03:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: help with dates in SQL</title>
      <link>https://community.qlik.com/t5/QlikView/help-with-dates-in-SQL/m-p/1364868#M616089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you that worked!&amp;nbsp; Where could I have found information about how to worked with dates as text???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Aug 2017 04:45:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/help-with-dates-in-SQL/m-p/1364868#M616089</guid>
      <dc:creator>josephinetedesc</dc:creator>
      <dc:date>2017-08-08T04:45:47Z</dc:date>
    </item>
  </channel>
</rss>

