<?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 Opposite Functionality of Join in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346850#M128317</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I understand it right I think a join (or anti join) is not needed here because in you result you want to load only records from table1 if no corresponding record exist in table2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefor you could do first load all distinct values of field a of table2 and then load table1 where not exists(a):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;load distinct a from...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final:&lt;/P&gt;&lt;P&gt;noconcatenate load a, b, c from ...&lt;/P&gt;&lt;P&gt;where not exists(a);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 May 2012 07:50:03 GMT</pubDate>
    <dc:creator>rbecher</dc:creator>
    <dc:date>2012-05-11T07:50:03Z</dc:date>
    <item>
      <title>Opposite Functionality of Join</title>
      <link>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346849#M128316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can any one assist for&amp;nbsp; the below scenario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have two tables like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 1:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;a,&lt;/P&gt;&lt;P&gt;b,&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;P&gt;from&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&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;a,e,f,&lt;/P&gt;&lt;P&gt;from&amp;nbsp;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In final table i need to satisfy the below condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final Table:&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;a,&lt;/P&gt;&lt;P&gt;b,&lt;/P&gt;&lt;P&gt;c&lt;/P&gt;&lt;P&gt;From&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Where Table1.a &amp;lt;&amp;gt; Table2.a;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 07:10:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346849#M128316</guid>
      <dc:creator>pavanthota</dc:creator>
      <dc:date>2012-05-11T07:10:31Z</dc:date>
    </item>
    <item>
      <title>Opposite Functionality of Join</title>
      <link>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346850#M128317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I understand it right I think a join (or anti join) is not needed here because in you result you want to load only records from table1 if no corresponding record exist in table2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefor you could do first load all distinct values of field a of table2 and then load table1 where not exists(a):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t1:&lt;/P&gt;&lt;P&gt;load distinct a from...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final:&lt;/P&gt;&lt;P&gt;noconcatenate load a, b, c from ...&lt;/P&gt;&lt;P&gt;where not exists(a);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table t1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 07:50:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346850#M128317</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2012-05-11T07:50:03Z</dc:date>
    </item>
    <item>
      <title>Opposite Functionality of Join</title>
      <link>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346851#M128318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Ralf,&lt;/P&gt;&lt;P&gt;Thanks for your help &lt;/P&gt;&lt;P&gt;I am new to Qlikview can you give me the below one script in qlikvew approach&lt;/P&gt;&lt;P&gt;"t1:&lt;/P&gt;&lt;P&gt;load distinct a from...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final:&lt;/P&gt;&lt;P&gt;noconcatenate load a, b, c from ...&lt;/P&gt;&lt;P&gt;where not exists(a);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table t1;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 10:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346851#M128318</guid>
      <dc:creator>pavanthota</dc:creator>
      <dc:date>2012-05-11T10:44:13Z</dc:date>
    </item>
    <item>
      <title>Opposite Functionality of Join</title>
      <link>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346852#M128319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is a QlikView script. Just add the FROM part and substitue the field names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 11:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346852#M128319</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2012-05-11T11:09:46Z</dc:date>
    </item>
    <item>
      <title>Opposite Functionality of Join</title>
      <link>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346853#M128320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;there are several ways to do that. Here is example with joins (copy bolded code in Script editor and reload QV document; result is in FINAL table):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLE_1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, B, C&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, b1, c1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, b2, c2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, b3, c3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, b4, c4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, b5, c5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TABLE_2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD * INLINE [&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, E, F&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, e1, f1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, e7, f7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, e2, f2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, e3, f3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, e4, f4&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//get intersection of tables A field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TEMP_TABLE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load&amp;nbsp; A as A_TEMP Resident TABLE_1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;inner Join&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD A as A_TEMP Resident TABLE_2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TEMP_TABLE_1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD A as A_TEMP, B as B_TEMP, C as C_TEMP Resident TABLE_1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;left join&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load&amp;nbsp; A_TEMP, A_TEMP as X Resident TEMP_TABLE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;drop Table TEMP_TABLE;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FINAL:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;load A_TEMP AS A_FINAL, B_TEMP as B_FINAL, C_TEMP AS C_FINAL&amp;nbsp; Resident TEMP_TABLE_1 where not exists(X);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;drop Table TEMP_TABLE_1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 11:16:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346853#M128320</guid>
      <dc:creator />
      <dc:date>2012-05-11T11:16:44Z</dc:date>
    </item>
    <item>
      <title>Opposite Functionality of Join</title>
      <link>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346854#M128321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To make it more clearly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp&lt;STRONG&gt; &lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;load distinct a from &lt;STRONG&gt;Table2&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;final:&lt;/P&gt;&lt;P&gt;noconcatenate load a, b, c from &lt;STRONG&gt;Table1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;where not exists(a);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table temp.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 11:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346854#M128321</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2012-05-11T11:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Opposite Functionality of Join</title>
      <link>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346855#M128322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&amp;nbsp; &lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" href="https://community.qlik.com/people/kpap1234" id="jive-6512025178565907220140"&gt;Krunoslav Pap&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have millions of data for that millions its giving wrong results, can u suggest me and make it as simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 14:31:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346855#M128322</guid>
      <dc:creator>pavanthota</dc:creator>
      <dc:date>2012-05-11T14:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Opposite Functionality of Join</title>
      <link>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346856#M128323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried based on your example i am attaching the example can u please guide me in proper direction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 14:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346856#M128323</guid>
      <dc:creator>pavanthota</dc:creator>
      <dc:date>2012-05-11T14:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Opposite Functionality of Join</title>
      <link>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346857#M128324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ralf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried based on your example i am attaching the example can u please guide me in proper direction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 14:48:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346857#M128324</guid>
      <dc:creator>pavanthota</dc:creator>
      <dc:date>2012-05-11T14:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Opposite Functionality of Join</title>
      <link>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346858#M128325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my approach:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE1:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, B, C&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, b1, c1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, b2, c2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3, b3, c3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4, b4, c4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 5, b5, c5&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE2:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; A, E, F&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1, e1, f1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2, e7, f7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 7, e2, f2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8, e3, f3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 9, e4, f4&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;temp:&lt;/P&gt;&lt;P&gt;load distinct A as X&lt;/P&gt;&lt;P&gt;Resident TABLE2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Table TABLE2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Final:&lt;/P&gt;&lt;P&gt;NoConcatenate Load A, B, C Resident TABLE1&lt;/P&gt;&lt;P&gt;where not exists(X, A);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Tables temp, TABLE1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//-------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's loading all records from Table1 where no corresponding record exists in Table2 (if field A is the key).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Ralf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 May 2012 17:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Opposite-Functionality-of-Join/m-p/346858#M128325</guid>
      <dc:creator>rbecher</dc:creator>
      <dc:date>2012-05-13T17:45:21Z</dc:date>
    </item>
  </channel>
</rss>

