<?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 where operator in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122266#M631299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the date format in your Period field. ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2016 14:48:59 GMT</pubDate>
    <dc:creator>vishsaggi</dc:creator>
    <dc:date>2016-08-31T14:48:59Z</dc:date>
    <item>
      <title>SQL where operator</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122261#M631294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day!&lt;/P&gt;&lt;P&gt;Colleagues, is any way in QV script of using QV variable in SQL query ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;1. Current Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Period;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM DataBase.dbo.DP3_Sales_Fact with (nolock)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where &lt;SPAN style="font-size: 13.3333px;"&gt;Period&lt;/SPAN&gt;&amp;gt;='2016-08-01 00:00:00.000';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2.Neccessary Load&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Main&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Period;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;FROM DataBase.dbo.DP3_Sales_Fact with (nolock)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;where &lt;SPAN style="font-size: 13.3333px;"&gt;Period&lt;/SPAN&gt;&amp;gt;=Current YearMonth&lt;/STRONG&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;In other words, in sql query i need load only Period for Current YearMonth (201608)&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 13:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122261#M631294</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-31T13:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: SQL where operator</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122262#M631295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Main&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load *&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Where Period = '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;201608';&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM DataBase.dbo.DP3_Sales_Fact with (nolock);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 14:05:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122262#M631295</guid>
      <dc:creator>trdandamudi</dc:creator>
      <dc:date>2016-08-31T14:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: SQL where operator</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122263#M631296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET &lt;STRONG style="color: #3d3d3d; font-family: inherit; font-size: 13.3333px; font-style: inherit;"&gt;CurrentYearMonth = Year(today()) &amp;amp; month(today());&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Main&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Period;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM DataBase.dbo.DP3_Sales_Fact with (nolock)&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;where &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Period&lt;/SPAN&gt;&amp;gt;=$(CurrentYearMonth)&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 14:15:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122263#M631296</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-31T14:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL where operator</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122264#M631297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use a variable in the sql part&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;Main&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load *;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;SQL SELECT *&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;FROM DataBase.dbo.DP3_Sales_Fact &lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;where Period &amp;gt;= $(vCurrentYearMonth);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 14:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122264#M631297</guid>
      <dc:creator>squeakie_pig</dc:creator>
      <dc:date>2016-08-31T14:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: SQL where operator</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122265#M631298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may need to use the TODAY() with some other functions in order to get the current Year &amp;amp; Month.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 14:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122265#M631298</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2016-08-31T14:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: SQL where operator</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122266#M631299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the date format in your Period field. ? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 14:48:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122266#M631299</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-08-31T14:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: SQL where operator</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122267#M631300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. &lt;/P&gt;&lt;P&gt;But Where operator in QV part of load table works longer as in SQL part.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 07:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122267#M631300</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T07:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: SQL where operator</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122268#M631301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 07:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122268#M631301</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T07:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL where operator</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122269#M631302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'YYYY.MM.DD'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 07:18:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122269#M631302</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T07:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: SQL where operator</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122270#M631303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might need to double-check this format.&lt;/P&gt;&lt;P&gt;Your original messages said the current load was :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Current Load&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Main:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;Period;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM DataBase.dbo.DP3_Sales_Fact with (nolock)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;where &lt;SPAN style="font-size: 13.3333px;"&gt;Period&lt;/SPAN&gt;&amp;gt;='2016-08-01 00:00:00.000';&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 07:46:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-where-operator/m-p/1122270#M631303</guid>
      <dc:creator>richard_chilvers</dc:creator>
      <dc:date>2016-09-01T07:46:30Z</dc:date>
    </item>
  </channel>
</rss>

