<?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 query - rolling 3 years in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/SQL-query-rolling-3-years/m-p/131125#M9238</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hannah, try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;oe-date-ent&lt;/SPAN&gt;] &amp;gt;= DATEADD(year, -3, GETDATE())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Where &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Year(&lt;/STRONG&gt;&lt;/SPAN&gt;[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;oe-date-ent&lt;/SPAN&gt;]) &amp;gt;= &lt;/STRONG&gt;&lt;/SPAN&gt;Year(GETDATE()) -2&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Oct 2018 08:08:15 GMT</pubDate>
    <dc:creator>andrey_krylov</dc:creator>
    <dc:date>2018-10-24T08:08:15Z</dc:date>
    <item>
      <title>SQL query - rolling 3 years</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-query-rolling-3-years/m-p/131124#M9237</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;I am working in Qlik Sense and connected to a SQL database. Does anyone know what my where clause would be to bring in the previous 3 years based off of the field "oe-date-ent" (not shown)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen Shot 2018-10-23 at 4.33.10 PM.png" class="jive-image image-1" height="254" src="/legacyfs/online/216622_Screen Shot 2018-10-23 at 4.33.10 PM.png" style="height: 254.208px; width: 397px;" width="397" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Oct 2018 20:43:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-query-rolling-3-years/m-p/131124#M9237</guid>
      <dc:creator>hjm35055</dc:creator>
      <dc:date>2018-10-23T20:43:35Z</dc:date>
    </item>
    <item>
      <title>Re: SQL query - rolling 3 years</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-query-rolling-3-years/m-p/131125#M9238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hannah, try this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Where [&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;oe-date-ent&lt;/SPAN&gt;] &amp;gt;= DATEADD(year, -3, GETDATE())&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Where &lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;STRONG&gt;Year(&lt;/STRONG&gt;&lt;/SPAN&gt;[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;oe-date-ent&lt;/SPAN&gt;]) &amp;gt;= &lt;/STRONG&gt;&lt;/SPAN&gt;Year(GETDATE()) -2&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2018 08:08:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-query-rolling-3-years/m-p/131125#M9238</guid>
      <dc:creator>andrey_krylov</dc:creator>
      <dc:date>2018-10-24T08:08:15Z</dc:date>
    </item>
  </channel>
</rss>

