<?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 Multiple load - where statements? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321488#M1180314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've successfully filtered out values from one table with this statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "Request_report".dbo."V_MSR" where app_id=3 or app_id=22 or app_id=63;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to filter out another value upon load, though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "Request_report".dbo."V_MSR" where status_id != 0;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By themselves, these statements work fine, but I cannot figure out how to do both of them upon load. Is there something I'm missing? Is there another way to do this? I'm not looking for bookmarks, either, I'm hoping for script executed upon load if possible. If this isn't an option, I understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2012 13:41:01 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-01-31T13:41:01Z</dc:date>
    <item>
      <title>Multiple load - where statements?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321488#M1180314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've successfully filtered out values from one table with this statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "Request_report".dbo."V_MSR" where app_id=3 or app_id=22 or app_id=63;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I need to filter out another value upon load, though:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "Request_report".dbo."V_MSR" where status_id != 0;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By themselves, these statements work fine, but I cannot figure out how to do both of them upon load. Is there something I'm missing? Is there another way to do this? I'm not looking for bookmarks, either, I'm hoping for script executed upon load if possible. If this isn't an option, I understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 13:41:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321488#M1180314</guid>
      <dc:creator />
      <dc:date>2012-01-31T13:41:01Z</dc:date>
    </item>
    <item>
      <title>Multiple load - where statements?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321489#M1180315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sounds you're looking for something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;SQL SELECT *&lt;BR /&gt;FROM "Request_report".dbo."V_MSR" where (app_id=3 or app_id=22 or app_id=63) and &lt;CODE class="jive-code"&gt;status_id != 0&lt;/CODE&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;&lt;CODE class="jive-code"&gt;&lt;/CODE&gt;;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;combining where-conditions in SQL is straight-forward if you know what's your AND and OR - in this case you have to use the parenthesis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;Edgar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 13:54:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321489#M1180315</guid>
      <dc:creator>ekech_infomotio</dc:creator>
      <dc:date>2012-01-31T13:54:55Z</dc:date>
    </item>
    <item>
      <title>Multiple load - where statements?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321490#M1180316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; That is exactly what I needed, I wasn't using the parantheses. I'm still trying to get a hang of Qlikview syntax.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 13:58:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321490#M1180316</guid>
      <dc:creator />
      <dc:date>2012-01-31T13:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple load - where statements?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321491#M1180317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't want to make a near-duplicate post concerning this, hence the "un-corrected" response, no offense... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to filter out a status_id of "11" on load, too, so how would that go? This code doesn't work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "Request_report".dbo."V_MSR" where (app_id=3 or app_id=22 or app_id=63) and (status_id!=11 or status_id!=0);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Once again I'm stumped with the correct syntax needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 20:19:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321491#M1180317</guid>
      <dc:creator />
      <dc:date>2012-01-31T20:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple load - where statements?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321492#M1180318</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;Do you need to load when both app_id and status_id are true? Is there a chance that you need to use OR instead of AND in the WHERE clause:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;Data:&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;LOAD *;&lt;BR /&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;SQL SELECT *&lt;BR /&gt;FROM "Request_report".dbo."V_MSR" &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;where (app_id=3 or app_id=22 or app_id=63) &lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class="jive-code"&gt;or (status_id!=11 or status_id!=0);&lt;/CODE&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will retrieve all records where either the first parenthesis or the second (or both) is true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 21:14:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321492#M1180318</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2012-01-31T21:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple load - where statements?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321493#M1180319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To specify what I'm trying to achieve:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two fields (app_id &amp;amp; status_id). They are numeric values. I would like to load only three values from app_id (3, 22, 63) and would like to load all values &lt;STRONG style="text-decoration: underline;"&gt;but&lt;/STRONG&gt; 0 and 11 in status_id. Both need to be true, not one or the other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried Miguel's code but unfortunately that didn't work. I've also tried the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "Request_report".dbo."V_MSR" &lt;/P&gt;&lt;P&gt;where (app_id=3 or app_id=22 or app_id=63) or (status_id&amp;lt;&amp;gt;11 or status_id&amp;lt;&amp;gt;0);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG style="color: #0000ff; font-size: 8pt;"&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: #000000;"&gt;Is this possible?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 21:49:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321493#M1180319</guid>
      <dc:creator />
      <dc:date>2012-01-31T21:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple load - where statements?</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321494#M1180320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Figured it out with this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT *&lt;/P&gt;&lt;P&gt;FROM "Request_report".dbo."V_MSR" &lt;/P&gt;&lt;P&gt;where (app_id=3 or app_id=22 or app_id=63) and (status_id != 0 and status_id != 11);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;Thanks for all the help everyone!&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2012 21:58:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-load-where-statements/m-p/321494#M1180320</guid>
      <dc:creator />
      <dc:date>2012-01-31T21:58:44Z</dc:date>
    </item>
  </channel>
</rss>

