<?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: How to do IN statement in LOAD Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-do-IN-statement-in-LOAD-Script/m-p/306351#M707240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Table3:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD *&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;WHERE&amp;nbsp;&amp;nbsp; not EXISTS( Column4, Column7)&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD *&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;FROM&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [..\..\DATA\DATASET1.qvd] (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Check out the help for detailed information about EXISTS() function, and do some testing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Dec 2011 10:44:11 GMT</pubDate>
    <dc:creator>luciancotea</dc:creator>
    <dc:date>2011-12-16T10:44:11Z</dc:date>
    <item>
      <title>How to do IN statement in LOAD Script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-IN-statement-in-LOAD-Script/m-p/306348#M707237</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;/P&gt;&lt;P&gt;I have the need to perform a task similar to the SQL IN statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am performing two load processes into temporary tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table1:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column2,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column3&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [..\..\DATA\DATASET1.qvd] (qvd)&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arguements here;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column5,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; column6&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [..\..\DATA\DATASET1.qvd] (qvd)&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; different arguements here;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to do after is something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table3:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column7,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column8,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column9&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [..\..\DATA\DATASET1.qvd] (qvd)&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column7 NOT IN RESIDENT (Table2) Column4;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 10:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-IN-statement-in-LOAD-Script/m-p/306348#M707237</guid>
      <dc:creator />
      <dc:date>2011-12-16T10:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to do IN statement in LOAD Script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-IN-statement-in-LOAD-Script/m-p/306349#M707238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. In your example, there will be only Table1, because Table2 will automatically concatenate to Table1 due to similar columns.&lt;/P&gt;&lt;P&gt;2. If you want to load only values that are not present already in a loaded column, use EXISTS()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Table3:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column1,&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column2,&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Column3&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;FROM&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [..\..\DATA\DATASET1.qvd] (qvd)&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;WHERE&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; not EXISTS( Column1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 10:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-IN-statement-in-LOAD-Script/m-p/306349#M707238</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2011-12-16T10:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to do IN statement in LOAD Script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-IN-statement-in-LOAD-Script/m-p/306350#M707239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i changed the example to show two distinct datasets, in my case they would not be merged as these temp tables are never consumed in the ui this is part of a process to build a qvd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that being said, how does, where not exists (column1) reference the different dataset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to load everything into resident table3 where the column7 does not contain any of the loaded values in temp table2 column4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 10:33:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-IN-statement-in-LOAD-Script/m-p/306350#M707239</guid>
      <dc:creator />
      <dc:date>2011-12-16T10:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to do IN statement in LOAD Script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-IN-statement-in-LOAD-Script/m-p/306351#M707240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Table3:&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD *&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;WHERE&amp;nbsp;&amp;nbsp; not EXISTS( Column4, Column7)&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;LOAD *&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;FROM&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [..\..\DATA\DATASET1.qvd] (qvd);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #eef4f9; font-size: 12px; color: #636363; font-family: Arial;"&gt;Check out the help for detailed information about EXISTS() function, and do some testing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2011 10:44:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-IN-statement-in-LOAD-Script/m-p/306351#M707240</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2011-12-16T10:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to do IN statement in LOAD Script</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-IN-statement-in-LOAD-Script/m-p/306352#M707241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Table2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;column4,&lt;/P&gt;&lt;P&gt;column5,&lt;/P&gt;&lt;P&gt;column6,&lt;/P&gt;&lt;P&gt;column4 as column7_reference&lt;/P&gt;&lt;P&gt;from Qvd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table3:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;column7,&lt;/P&gt;&lt;P&gt;column8,&lt;/P&gt;&lt;P&gt;column9&lt;/P&gt;&lt;P&gt;from Qvd&lt;/P&gt;&lt;P&gt;where not exists(column7_reference,column7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This helps in checking the existence only in Table2. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Nov 2014 04:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-IN-statement-in-LOAD-Script/m-p/306352#M707241</guid>
      <dc:creator />
      <dc:date>2014-11-06T04:46:37Z</dc:date>
    </item>
  </channel>
</rss>

