<?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 Clause2 in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-Clause2/m-p/1218441#M626672</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;The syntax for the following where clause is correct, the script runs without error, but the expected result is incorrect as if it ignored the where conditions.&amp;nbsp; I'm expecting to see only records where Entity Status2='A', Studflag='STUD' AND Profession = 'NUR' AND Yrsins2=1.&amp;nbsp; The output includes all records.&amp;nbsp; I've attached the qvw document, but the data is too large to attach.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;T1_ActiveTerm3:&lt;BR /&gt; &lt;STRONG&gt;LOAD&lt;/STRONG&gt; *&lt;BR /&gt; Resident T1_ActiveTerm2&lt;BR /&gt; WHERE ([Entity Status2] = 'A' AND Studflag='STUD' AND Profession = 'NUR' AND Yrsins2&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;=1); &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Nov 2016 18:01:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-11-23T18:01:56Z</dc:date>
    <item>
      <title>Where Clause2</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause2/m-p/1218441#M626672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;The syntax for the following where clause is correct, the script runs without error, but the expected result is incorrect as if it ignored the where conditions.&amp;nbsp; I'm expecting to see only records where Entity Status2='A', Studflag='STUD' AND Profession = 'NUR' AND Yrsins2=1.&amp;nbsp; The output includes all records.&amp;nbsp; I've attached the qvw document, but the data is too large to attach.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;T1_ActiveTerm3:&lt;BR /&gt; &lt;STRONG&gt;LOAD&lt;/STRONG&gt; *&lt;BR /&gt; Resident T1_ActiveTerm2&lt;BR /&gt; WHERE ([Entity Status2] = 'A' AND Studflag='STUD' AND Profession = 'NUR' AND Yrsins2&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 12pt;"&gt;=1); &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 18:01:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause2/m-p/1218441#M626672</guid>
      <dc:creator />
      <dc:date>2016-11-23T18:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause2</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause2/m-p/1218442#M626673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;I just revised the script as follows and the where clause works.&amp;nbsp; I'm not sure why two LOADS are required to make the WHERE clause work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;T1_ActiveTerm3:&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; *&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;WHERE&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;[Entity Status2]&lt;/SPAN&gt; = 'A' &lt;SPAN style="color: #0000ff;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Studflag&lt;/SPAN&gt;='STUD' &lt;SPAN style="color: #0000ff;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Profession&lt;/SPAN&gt; = 'NUR' &lt;SPAN style="color: #0000ff;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Yrsins2&lt;/SPAN&gt;=1);&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LOAD&lt;/STRONG&gt; &lt;SPAN style="color: #800000;"&gt;[Account No]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;[Entity Status2]&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Studflag&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Profession&lt;/SPAN&gt;,&lt;SPAN style="color: #800000;"&gt;Yrsins2&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: #0000ff;"&gt;Resident&lt;/SPAN&gt; T1_ActiveTerm2;&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;Drop&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff;"&gt;Table&lt;/SPAN&gt; T1_ActiveTerm2 &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 18:11:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause2/m-p/1218442#M626673</guid>
      <dc:creator />
      <dc:date>2016-11-23T18:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause2</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause2/m-p/1218443#M626674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The records from that load statement will be appended to the table T1_ActiveTerm2 because you load exactly the same fields. That's why you see all the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add the NOCONCATENATE keyword before the LOAD. And drop the table &lt;SPAN style="font-size: 13.3333px;"&gt;T1_ActiveTerm2 afterwards or you'll get a massive synthetic key which will likely cripple performance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 18:12:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause2/m-p/1218443#M626674</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-11-23T18:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause2</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause2/m-p/1218444#M626675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had already done a slight modification to your answer (see my reply).&amp;nbsp; Do you know why I need two LOAD statements ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 18:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause2/m-p/1218444#M626675</guid>
      <dc:creator />
      <dc:date>2016-11-23T18:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause2</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause2/m-p/1218445#M626676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't need two. But your modification specifically list fields. That list of fields is a subset of all the fields that exists in T1_ActiveTerm2. Since that will create a table with a different structure (less fields than the source table) the records will end up in the new table instead of being appended to the source table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 18:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause2/m-p/1218445#M626676</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2016-11-23T18:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Where Clause2</title>
      <link>https://community.qlik.com/t5/QlikView/Where-Clause2/m-p/1218446#M626677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks !! &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 18:27:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-Clause2/m-p/1218446#M626677</guid>
      <dc:creator />
      <dc:date>2016-11-23T18:27:57Z</dc:date>
    </item>
  </channel>
</rss>

