<?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: Left Join Where in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566432#M211314</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lawrence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a bit tricky and can be done a&amp;nbsp; lot easier in SQL. Here's my solution:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13905760520827782" jivemacro_uid="_13905760520827782"&gt;
&lt;P&gt;A:&lt;/P&gt;
&lt;P&gt;LOAD F1 as FieldA INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n2&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;B:&lt;/P&gt;
&lt;P&gt;LOAD F1 as FieldB INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Final:&lt;/P&gt;
&lt;P&gt;LOAD FieldA as FinalField Resident A&lt;/P&gt;
&lt;P&gt;where not Exists(FieldB, FieldA)&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;drop tables A, B;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JV&lt;/P&gt;&lt;P&gt;&lt;A href="http://biexperience.wordpress.com/" title="http://biexperience.wordpress.com/"&gt;BI Experience | A place to share our Business Intelligence experiences&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jan 2014 15:05:27 GMT</pubDate>
    <dc:creator>jvitantonio</dc:creator>
    <dc:date>2014-01-24T15:05:27Z</dc:date>
    <item>
      <title>Left Join Where</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566429#M211311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I'm trying to join 2 tables from qvd's resident and keep only the records in Table 1 where there is an associated record in Table 2 like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Left Join Where.bmp" class="jive-image" src="/legacyfs/online/52051_Left Join Where.bmp" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is only 1 field in each table that is the same - the key field. Is there a way to do this in QlikView?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 14:39:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566429#M211311</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2014-01-24T14:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Where</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566430#M211312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll want to use INNER JOIN.&amp;nbsp; See the following for further explanation:&lt;/P&gt;&lt;P&gt;&lt;A class="unlinked" title="http://www.qlikfix.com/2011/02/07/merging-tables-the-join-prefix/"&gt;http://www.qlikfix.com/2011/02/07/merging-tables-the-join-prefix/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 14:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566430#M211312</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2014-01-24T14:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Where</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566431#M211313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lawrence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes don't use JOIN but KEEP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KEEP has the same effect but keep 2 disitnct tables&lt;/P&gt;&lt;P&gt;So you can drop the one you don"t want anymore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table _A:&lt;/P&gt;&lt;P&gt;Right KEEP&lt;/P&gt;&lt;P&gt;LOAD * resident Tablee_B;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Table B already loaded)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 14:42:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566431#M211313</guid>
      <dc:creator />
      <dc:date>2014-01-24T14:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Where</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566432#M211314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lawrence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a bit tricky and can be done a&amp;nbsp; lot easier in SQL. Here's my solution:&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13905760520827782" jivemacro_uid="_13905760520827782"&gt;
&lt;P&gt;A:&lt;/P&gt;
&lt;P&gt;LOAD F1 as FieldA INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; s3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n2&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;B:&lt;/P&gt;
&lt;P&gt;LOAD F1 as FieldB INLINE [&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; F1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; n2&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; C&lt;/P&gt;
&lt;P&gt;];&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Final:&lt;/P&gt;
&lt;P&gt;LOAD FieldA as FinalField Resident A&lt;/P&gt;
&lt;P&gt;where not Exists(FieldB, FieldA)&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;drop tables A, B;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JV&lt;/P&gt;&lt;P&gt;&lt;A href="http://biexperience.wordpress.com/" title="http://biexperience.wordpress.com/"&gt;BI Experience | A place to share our Business Intelligence experiences&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 15:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566432#M211314</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2014-01-24T15:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Where</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566433#M211315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wasn't able to get QlikView to drop the table. I included it in a drop tables statement, but it keeps the table anyway so I end up with 2 tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 18:03:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566433#M211315</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2014-01-24T18:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Where</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566434#M211316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, to clarify, I meant to say that I want to keep the records in table A where there is NOT a corresponding record in B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 18:05:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566434#M211316</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2014-01-24T18:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Where</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566435#M211317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand it right:&lt;/P&gt;&lt;P&gt;First, load the table B.&lt;/P&gt;&lt;P&gt;After this, load table A with a condition &lt;STRONG&gt;where not exists(KeyField)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;And, drop table B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 18:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566435#M211317</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-24T18:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Left Join Where</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566436#M211318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Lawrence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry i made a mistake&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is an example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jan 2014 16:59:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566436#M211318</guid>
      <dc:creator />
      <dc:date>2014-01-27T16:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Left Join Where</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566437#M211319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to do this from a qvd. Is that possible with this example?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 17:26:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566437#M211319</guid>
      <dc:creator>lbunnell</dc:creator>
      <dc:date>2014-01-28T17:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Left Join Where</title>
      <link>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566438#M211320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lawrence,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it would be the same:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_text_macro _jivemacro_uid_13909315004159096 jive_macro_code" jivemacro_uid="_13909315004159096" modifiedtitle="true"&gt;
&lt;P&gt;A: &lt;/P&gt;
&lt;P&gt;LOAD F1 as FieldA FROM C:\MyTableA.qvd;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;B: &lt;/P&gt;
&lt;P&gt;LOAD F1 as FieldB FROM C:\myTableB.qvd;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Final: &lt;/P&gt;
&lt;P&gt;LOAD FieldA as FinalField Resident A &lt;/P&gt;
&lt;P&gt;where not Exists(FieldB, FieldA) &lt;/P&gt;
&lt;P&gt;; &lt;/P&gt;
&lt;P&gt;drop tables A, B; &lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;JV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 17:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-Join-Where/m-p/566438#M211320</guid>
      <dc:creator>jvitantonio</dc:creator>
      <dc:date>2014-01-28T17:49:53Z</dc:date>
    </item>
  </channel>
</rss>

