<?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 where 1=1? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/where-1-1/m-p/347271#M1173231</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have seen that some people write &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lastname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstname&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer&lt;/P&gt;&lt;P&gt;where 1=1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purpose of haveing "where 1=1"? What result would it gain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2012 09:20:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-11T09:20:27Z</dc:date>
    <item>
      <title>where 1=1?</title>
      <link>https://community.qlik.com/t5/QlikView/where-1-1/m-p/347271#M1173231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have seen that some people write &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lastname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; firstname&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer&lt;/P&gt;&lt;P&gt;where 1=1"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The purpose of haveing "where 1=1"? What result would it gain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 09:20:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-1-1/m-p/347271#M1173231</guid>
      <dc:creator />
      <dc:date>2012-05-11T09:20:27Z</dc:date>
    </item>
    <item>
      <title>where 1=1?</title>
      <link>https://community.qlik.com/t5/QlikView/where-1-1/m-p/347272#M1173232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe this is used to generate a permanently 'true' boolean statement,&amp;nbsp; perhaps to force that a database to return a resulset. However this shouldn't be necessary unless the database from which you are getting data is buggy, and doesn't return data sometimes, using a statement that forces a "true" on the query, may get the job done.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 21:57:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-1-1/m-p/347272#M1173232</guid>
      <dc:creator />
      <dc:date>2012-05-14T21:57:15Z</dc:date>
    </item>
    <item>
      <title>where 1=1?</title>
      <link>https://community.qlik.com/t5/QlikView/where-1-1/m-p/347273#M1173233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Jorge indicated, it's an "always true" clause. It logically has the same effect as no where clause. I've seen two uses in QV script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. As a placeholder, commonly used when variables are used to generate the SQL statement. The WHERE is a fixed bit of text and the 1=1 avoids a syntax error when you want no clause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. As a way to force an unoptimized load from a QVD. In that case you would see it in a LOAD statement rather than a SQL SELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 23:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-1-1/m-p/347273#M1173233</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2012-05-14T23:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: where 1=1?</title>
      <link>https://community.qlik.com/t5/QlikView/where-1-1/m-p/347274#M1173234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the reason to force an unoptimized load?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2018 17:37:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-1-1/m-p/347274#M1173234</guid>
      <dc:creator>dyy</dc:creator>
      <dc:date>2018-06-28T17:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: where 1=1?</title>
      <link>https://community.qlik.com/t5/QlikView/where-1-1/m-p/347275#M1173235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A few items don't work as optimized loads. For example, mapping table loads.&amp;nbsp; Can't recall others at the moment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2018 04:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/where-1-1/m-p/347275#M1173235</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-06-29T04:40:24Z</dc:date>
    </item>
  </channel>
</rss>

