<?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: Where 1=1 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907093#M315103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the below link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/41113"&gt;https://community.qlik.com/thread/41113&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Aug 2015 17:35:42 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2015-08-01T17:35:42Z</dc:date>
    <item>
      <title>Where 1=1</title>
      <link>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907091#M315101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the use of using where 1=1 and why we are using&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2015 17:12:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907091#M315101</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2015-08-01T17:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Where 1=1</title>
      <link>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907092#M315102</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;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;You can use it in the script to prevent the table to be loaded optimized.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;You can load a table optimized super fast or normal (when you use calculations in the script of the table)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2015 17:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907092#M315102</guid>
      <dc:creator>jjordaan</dc:creator>
      <dc:date>2015-08-01T17:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Where 1=1</title>
      <link>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907093#M315103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the below link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/41113"&gt;https://community.qlik.com/thread/41113&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2015 17:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907093#M315103</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-08-01T17:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Where 1=1</title>
      <link>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907094#M315104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;should be equal t&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;o&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14384515692586317" jivemacro_uid="_14384515692586317"&gt;
&lt;P&gt;Where 1&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2015 17:43:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907094#M315104</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-08-01T17:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Where 1=1</title>
      <link>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907095#M315105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u explain more detailed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2015 18:32:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907095#M315105</guid>
      <dc:creator>manoranjan_d</dc:creator>
      <dc:date>2015-08-01T18:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Where 1=1</title>
      <link>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907096#M315106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoranjan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was the case in older versions of QlikView that mapping tables could not be created from Optimised QVD loads.&amp;nbsp; If you executed this script, it the mapping table would simply not exist and the lookup would fail silently:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Map_Table:&lt;/P&gt;&lt;P&gt;LOAD&lt;BR /&gt;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Desc&lt;/P&gt;&lt;P&gt;FROM MyQVD.qvd (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only way to resolve this was to make the load non-optimised, and the simplest way to do this was to add WHERE 1=1 on the end of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the only functional reason I can think of for having that code in place.&amp;nbsp; If you are running in a version of QlikView newer than QV9 (I think) then the code is most likely redundant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only other reasons I can think of is someone left it there as a place holder, so when they removed an actual WHERE clause they replaced it with something that would always evaluate to true.&amp;nbsp; Or... someone has a set of variable AND statements.&amp;nbsp; By putting WHERE 1=1, they could have a set of variables which may or may not contain an and statement such as AND Customer = 'ABC'.&amp;nbsp; This way, code with several variables that may (or may not) contain ANDs could work, ie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;FROM MyQVD.qvd (qvd)&lt;/P&gt;&lt;P&gt;WHERE 1=1&lt;/P&gt;&lt;P&gt;$(vPossibleAND1)&lt;/P&gt;&lt;P&gt;$(vPossibleAND2)&lt;/P&gt;&lt;P&gt;$(vPossibleAND3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that makes some kind of sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2015 21:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907096#M315106</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2015-08-01T21:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Where 1=1</title>
      <link>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907097#M315107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoranjan,&lt;/P&gt;&lt;P&gt;If you use &lt;STRONG&gt;where 1=1&lt;/STRONG&gt; in normal SQL it will give all the data from the SQL.&lt;/P&gt;&lt;P&gt;I didn't see this in Qlikview script. Hope other folks will give answer. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Aug 2015 04:53:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-1-1/m-p/907097#M315107</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2015-08-02T04:53:24Z</dc:date>
    </item>
  </channel>
</rss>

