<?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 SQL WHERE Date &amp;gt;Today() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-WHERE-Date-gt-Today/m-p/1019325#M945063</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have SQL table and column Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to make WHERE limited selection in order to get only records with Data for last tree month..... like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InMonth(Date,Today(),-3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jan 2016 13:00:13 GMT</pubDate>
    <dc:creator>sculptorlv</dc:creator>
    <dc:date>2016-01-04T13:00:13Z</dc:date>
    <item>
      <title>SQL WHERE Date &gt;Today()</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-WHERE-Date-gt-Today/m-p/1019325#M945063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have SQL table and column Date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to make WHERE limited selection in order to get only records with Data for last tree month..... like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;InMonth(Date,Today(),-3)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:00:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-WHERE-Date-gt-Today/m-p/1019325#M945063</guid>
      <dc:creator>sculptorlv</dc:creator>
      <dc:date>2016-01-04T13:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL WHERE Date &gt;Today()</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-WHERE-Date-gt-Today/m-p/1019326#M945064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a Variable as below&lt;/P&gt;&lt;P&gt;Let vTodayMinus3Month = AddMonths(Today(),-3);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now load as per&lt;/P&gt;&lt;P&gt;TableName:&lt;/P&gt;&lt;P&gt;Load * From TableName Where Date &amp;gt;= '$(&lt;SPAN style="font-size: 13.3333px;"&gt;vTodayMinus3Month)';&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:02:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-WHERE-Date-gt-Today/m-p/1019326#M945064</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2016-01-04T13:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL WHERE Date &gt;Today()</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-WHERE-Date-gt-Today/m-p/1019327#M945065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create a variable for that 3mnths and use it in load stmnt..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:03:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-WHERE-Date-gt-Today/m-p/1019327#M945065</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2016-01-04T13:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL WHERE Date &gt;Today()</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-WHERE-Date-gt-Today/m-p/1019328#M945066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are doing the comparison on the SQL Where clause, you can use the SQL syntax supported by your server - for example, in SQL Server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL SELECT *&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; From dbo.MyData&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Where Date &amp;gt;= DateAdd(m, -3, GetDate());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MySQL, Oracle etc will have different syntax - but this avoids date formatting issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-WHERE-Date-gt-Today/m-p/1019328#M945066</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2016-01-04T13:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: SQL WHERE Date &gt;Today()</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-WHERE-Date-gt-Today/m-p/1019329#M945067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruslans,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do these using variables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET vStartDate= Monthstart(Addmonths(Today(),-3))&amp;nbsp; &lt;/P&gt;&lt;P&gt;so by these variable it will consider like for today it will take then it will return , 01/10/2015&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that you can use that variable inside SQL statement by,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Last3MDATA:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;LAOD *;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;From dbo.MyData&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where Date &amp;gt;= $(vStartdate);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:Please check the date format in every area(DD/MM/YYYY or YYYY-MM-DD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Koushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:17:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-WHERE-Date-gt-Today/m-p/1019329#M945067</guid>
      <dc:creator>koushik_btech20</dc:creator>
      <dc:date>2016-01-04T13:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQL WHERE Date &gt;Today()</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-WHERE-Date-gt-Today/m-p/1019330#M945068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, that is exactly what I wanted.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 13:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-WHERE-Date-gt-Today/m-p/1019330#M945068</guid>
      <dc:creator>sculptorlv</dc:creator>
      <dc:date>2016-01-04T13:24:07Z</dc:date>
    </item>
  </channel>
</rss>

