<?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 Question about left join and where in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Question-about-left-join-and-where/m-p/285405#M1201176</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I've searched around a bit on the forums but haven't found anything really relevant, although I might have missed it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyway, I have 2 tables which i load from QVD files. Both tables have a field, lets call it Field1 which has many identical values in both tables. The first table also has a field, we can call it Field2.&lt;/P&gt;&lt;P&gt;What I want to do is to join these to tables and ONLY load rows from Table2 where Field2 in Table1 is greater than a specific value.&lt;/P&gt;&lt;P&gt;I've tried to do it like this:&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;Field1,Field2&lt;BR /&gt;FROM Table1.qvd;&lt;/P&gt;&lt;P&gt;Left join Load&lt;BR /&gt;Field1, Field3&lt;BR /&gt;FROM Table2.qvd where Field2&amp;gt;10;&lt;/P&gt;&lt;P&gt;But this doesnt work (of course). How do I accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 31 Oct 2010 12:42:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-10-31T12:42:27Z</dc:date>
    <item>
      <title>Question about left join and where</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-left-join-and-where/m-p/285405#M1201176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I've searched around a bit on the forums but haven't found anything really relevant, although I might have missed it &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyway, I have 2 tables which i load from QVD files. Both tables have a field, lets call it Field1 which has many identical values in both tables. The first table also has a field, we can call it Field2.&lt;/P&gt;&lt;P&gt;What I want to do is to join these to tables and ONLY load rows from Table2 where Field2 in Table1 is greater than a specific value.&lt;/P&gt;&lt;P&gt;I've tried to do it like this:&lt;/P&gt;&lt;P&gt;Load&lt;BR /&gt;Field1,Field2&lt;BR /&gt;FROM Table1.qvd;&lt;/P&gt;&lt;P&gt;Left join Load&lt;BR /&gt;Field1, Field3&lt;BR /&gt;FROM Table2.qvd where Field2&amp;gt;10;&lt;/P&gt;&lt;P&gt;But this doesnt work (of course). How do I accomplish this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Oct 2010 12:42:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-left-join-and-where/m-p/285405#M1201176</guid>
      <dc:creator />
      <dc:date>2010-10-31T12:42:27Z</dc:date>
    </item>
    <item>
      <title>Question about left join and where</title>
      <link>https://community.qlik.com/t5/QlikView/Question-about-left-join-and-where/m-p/285406#M1201177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One way to accomplish this is to join both tables as is, and after that run another load to eliminate records:&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;table_tmp:&lt;BR /&gt;Load&lt;BR /&gt;Field1,Field2&lt;BR /&gt;FROM Table1.qvd;&lt;BR /&gt;Left join (table_tmp) Load&lt;BR /&gt;Field1, Field3&lt;BR /&gt;FROM Table2.qvd;&lt;BR /&gt;NOCONCATENATE&lt;BR /&gt;table:&lt;BR /&gt;LOAD&lt;BR /&gt;Field1,Field2,&lt;BR /&gt;if(Field2&amp;gt;10, Field3) as Field3&lt;BR /&gt;RESIDENT table_tmp;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Another way, which probably will by my preference, is to use mapping:&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;table:&lt;BR /&gt;Load&lt;BR /&gt;Field1,Field2&lt;BR /&gt;FROM Table1.qvd;&lt;BR /&gt;Map:&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;Field1 as A,&lt;BR /&gt;Field2 as B&lt;BR /&gt;RESIDENT table;&lt;BR /&gt;LEFT JOIN (table) LOAD&lt;BR /&gt;Field1,&lt;BR /&gt;FROM Table2.qvd&lt;BR /&gt;where applymap('Map',Field1,0)&amp;gt;10;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Oct 2010 13:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Question-about-left-join-and-where/m-p/285406#M1201177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-31T13:48:29Z</dc:date>
    </item>
  </channel>
</rss>

