<?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: Nested LOAD Statment in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Nested-LOAD-Statment/m-p/827516#M1002841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't mention that the SQL was just an example; sorry. I'm dealing with 2 QVDs instead of database tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2015 12:24:29 GMT</pubDate>
    <dc:creator>matthewjbryant</dc:creator>
    <dc:date>2015-06-04T12:24:29Z</dc:date>
    <item>
      <title>Nested LOAD Statment</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-LOAD-Statment/m-p/827513#M1002838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to replicate a nested SELECT in Qlikview?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation where in PL/SQL I would write something like the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; CASE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN COLUMN1 NOT IN (SELECT COLUMN2 FROM TABLE2) THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Ok'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE 'Not Ok'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; END&lt;/P&gt;&lt;P&gt;FROM TABLE1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to do a similar thing with the LOAD statement in Qlikview?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 11:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-LOAD-Statment/m-p/827513#M1002838</guid>
      <dc:creator>matthewjbryant</dc:creator>
      <dc:date>2015-06-04T11:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Nested LOAD Statment</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-LOAD-Statment/m-p/827514#M1002839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew, one way to do that is loading the values of table 2 and check using Exists(), ie:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2Column2:&lt;/P&gt;&lt;P&gt;LOAD Distinct COLUMN2 as CheckColumn2 FROM Table2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD If(Exists('CheckColumn2', COLUMN1), 'Ok', 'Not OK') as Check&lt;/P&gt;&lt;P&gt;FROM TABLE1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table Table2Column2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:18:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-LOAD-Statment/m-p/827514#M1002839</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-06-04T12:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Nested LOAD Statment</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-LOAD-Statment/m-p/827515#M1002840</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;If the script is more complicated, then You can load the sql statement directly to qlikview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:21:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-LOAD-Statment/m-p/827515#M1002840</guid>
      <dc:creator>MayilVahanan</dc:creator>
      <dc:date>2015-06-04T12:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Nested LOAD Statment</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-LOAD-Statment/m-p/827516#M1002841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't mention that the SQL was just an example; sorry. I'm dealing with 2 QVDs instead of database tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:24:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-LOAD-Statment/m-p/827516#M1002841</guid>
      <dc:creator>matthewjbryant</dc:creator>
      <dc:date>2015-06-04T12:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Nested LOAD Statment</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-LOAD-Statment/m-p/827517#M1002842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. This worked perfectly. I'd seen the EXISTS() function used in other ways, but couldn't find this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One question: what if you had 2 QVWs with the same column name, but only want to check if a new column exists in one of them? Do you create pseudo-columns both of the QVWs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 13:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-LOAD-Statment/m-p/827517#M1002842</guid>
      <dc:creator>matthewjbryant</dc:creator>
      <dc:date>2015-06-04T13:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Nested LOAD Statment</title>
      <link>https://community.qlik.com/t5/QlikView/Nested-LOAD-Statment/m-p/827518#M1002843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm guessing each qvw has those columns names previoulsy loaded in a qvd (if not, you can create one while reloading), I think the easiest way is loading both qvds in the field CheckColumn2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2Column2:&lt;/P&gt;&lt;P&gt;LOAD Distinct COLUMN2 as CheckColumn2 FROM qvw1.Table2.qvd(qvd);&lt;/P&gt;&lt;P&gt;Concatenate LOAD Distinct COLUMN2 as CheckColumn2 FROM qvw2.Table2.qvd(qvd);&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 13:48:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Nested-LOAD-Statment/m-p/827518#M1002843</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2015-06-04T13:48:05Z</dc:date>
    </item>
  </channel>
</rss>

