<?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 Left JOIN between tables with no keyid? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Left-JOIN-between-tables-with-no-keyid/m-p/186597#M50631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can JOIN the tables first and then reload the data while doing the WHERE clause.&lt;/P&gt;&lt;P&gt;Like this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Table1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Q&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;5&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Table2:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;QFrom, QTo, Desc&lt;BR /&gt;0, 10, Less than 10&lt;BR /&gt;10, 20, Between 10 and 20&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;JOIN (Table1)&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT Table2;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE Table2;&lt;BR /&gt;&lt;BR /&gt;STORE * FROM Table1 INTO Table1.qvd (qvd);&lt;BR /&gt;&lt;BR /&gt;DROP TABLE Table1;&lt;BR /&gt;&lt;BR /&gt;Table1:&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM Table1.qvd (qvd)&lt;BR /&gt;WHERE Q &amp;gt;= QFrom AND Q &amp;lt; QTo;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Mar 2010 10:24:21 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-03-19T10:24:21Z</dc:date>
    <item>
      <title>Left JOIN between tables with no keyid?</title>
      <link>https://community.qlik.com/t5/QlikView/Left-JOIN-between-tables-with-no-keyid/m-p/186596#M50630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;I have two tables with no KEYID relation between them&lt;/P&gt;&lt;P&gt;TABLE1:&lt;/P&gt;&lt;P&gt;Q.&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE2:&lt;/P&gt;&lt;P&gt;FROMQ,&lt;/P&gt;&lt;P&gt;TOQ,&lt;/P&gt;&lt;P&gt;Desc,&lt;/P&gt;&lt;P&gt;0,10, Less than 10&lt;/P&gt;&lt;P&gt;10,20 Between 10 - 20&lt;/P&gt;&lt;P&gt;I'm tryin to do&lt;/P&gt;&lt;P&gt;&lt;B&gt;LEFT&lt;/B&gt; &lt;B&gt;JOIN&lt;/B&gt; (&lt;I&gt;TABLE1&lt;/I&gt;) &lt;B&gt;LOAD&lt;/B&gt; * &lt;B&gt;RESIDENT TABLE2 Where Q&amp;gt;=FROMQ and Q&amp;lt;TOQ&lt;/B&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get system error: Q doensn't exist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 09:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-JOIN-between-tables-with-no-keyid/m-p/186596#M50630</guid>
      <dc:creator />
      <dc:date>2010-03-19T09:20:25Z</dc:date>
    </item>
    <item>
      <title>Left JOIN between tables with no keyid?</title>
      <link>https://community.qlik.com/t5/QlikView/Left-JOIN-between-tables-with-no-keyid/m-p/186597#M50631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can JOIN the tables first and then reload the data while doing the WHERE clause.&lt;/P&gt;&lt;P&gt;Like this ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Table1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Q&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;5&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Table2:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;QFrom, QTo, Desc&lt;BR /&gt;0, 10, Less than 10&lt;BR /&gt;10, 20, Between 10 and 20&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;JOIN (Table1)&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT Table2;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE Table2;&lt;BR /&gt;&lt;BR /&gt;STORE * FROM Table1 INTO Table1.qvd (qvd);&lt;BR /&gt;&lt;BR /&gt;DROP TABLE Table1;&lt;BR /&gt;&lt;BR /&gt;Table1:&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM Table1.qvd (qvd)&lt;BR /&gt;WHERE Q &amp;gt;= QFrom AND Q &amp;lt; QTo;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 10:24:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-JOIN-between-tables-with-no-keyid/m-p/186597#M50631</guid>
      <dc:creator />
      <dc:date>2010-03-19T10:24:21Z</dc:date>
    </item>
    <item>
      <title>Left JOIN between tables with no keyid?</title>
      <link>https://community.qlik.com/t5/QlikView/Left-JOIN-between-tables-with-no-keyid/m-p/186598#M50632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably an even better script is ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt;Table1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Q&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;5&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Table2:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;QFrom, QTo, Desc&lt;BR /&gt;0, 10, Less than 10&lt;BR /&gt;10, 20, Between 10 and 20&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN (Table1)&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT Table2;&lt;BR /&gt;&lt;BR /&gt;Table3:&lt;BR /&gt;NOCONCATENATE&lt;BR /&gt;LOAD *&lt;BR /&gt;RESIDENT Table1&lt;BR /&gt;WHERE Q &amp;gt;= QFrom AND Q &amp;lt; QTo;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE Table1, Table2;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 10:32:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-JOIN-between-tables-with-no-keyid/m-p/186598#M50632</guid>
      <dc:creator />
      <dc:date>2010-03-19T10:32:36Z</dc:date>
    </item>
    <item>
      <title>Left JOIN between tables with no keyid?</title>
      <link>https://community.qlik.com/t5/QlikView/Left-JOIN-between-tables-with-no-keyid/m-p/186599#M50633</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 you just explain this code please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LEFT&lt;/STRONG&gt; &lt;STRONG&gt;JOIN&lt;/STRONG&gt; (&lt;I&gt;TABLE1&lt;/I&gt;) &lt;STRONG&gt;LOAD&lt;/STRONG&gt; * &lt;STRONG&gt;RESIDENT TABLE2 Where Q&amp;gt;=FROMQ and Q&amp;lt;TOQ&lt;/STRONG&gt;;&lt;/P&gt;&lt;DIV&gt;For what context are you trying to filter the values while doing a left join. I tried the code without using the where and it was working fine. Not only that , the code for ledt join should be like this without using the filter:&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;STRONG&gt;LEFT&lt;/STRONG&gt; &lt;STRONG&gt;JOIN&lt;/STRONG&gt; (&lt;I&gt;TABLE2&lt;/I&gt;) &lt;STRONG&gt;LOAD&lt;/STRONG&gt; * &lt;STRONG&gt;RESIDENT&lt;/STRONG&gt; TABLE1;&lt;/P&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 11:10:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-JOIN-between-tables-with-no-keyid/m-p/186599#M50633</guid>
      <dc:creator />
      <dc:date>2010-03-19T11:10:30Z</dc:date>
    </item>
    <item>
      <title>Left JOIN between tables with no keyid?</title>
      <link>https://community.qlik.com/t5/QlikView/Left-JOIN-between-tables-with-no-keyid/m-p/186600#M50634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is also a function called INTERVALMATCH that can link values from one table into an interval from another and create a join.&lt;/P&gt;&lt;P&gt;On it's own creates a Synthetic key b/w Table1 and Table2. I added a little to create Table3 and join the Desc back into it so end up with one table.&lt;/P&gt;&lt;P&gt;Table1:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;Q&lt;BR /&gt;1&lt;BR /&gt;2&lt;BR /&gt;3&lt;BR /&gt;4&lt;BR /&gt;5&lt;BR /&gt;15&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Table2:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt;QFrom, QTo, Desc&lt;BR /&gt;0, 10, Less than 10&lt;BR /&gt;10, 20, Between 10 and 20&lt;BR /&gt;];&lt;BR /&gt;&lt;BR /&gt;Table3:&lt;BR /&gt;INTERVALMATCH (Q)&lt;BR /&gt;NOCONCATENATE LOAD QFrom, QTo RESIDENT Table2;&lt;BR /&gt;&lt;BR /&gt;LEFT JOIN (Table3) LOAD&lt;BR /&gt; QFrom,&lt;BR /&gt; QTo,&lt;BR /&gt; Desc&lt;BR /&gt;RESIDENT Table2;&lt;BR /&gt;&lt;BR /&gt;DROP TABLE Table1;&lt;BR /&gt;DROP TABLE Table2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Mar 2010 11:49:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Left-JOIN-between-tables-with-no-keyid/m-p/186600#M50634</guid>
      <dc:creator>michael_anthony</dc:creator>
      <dc:date>2010-03-19T11:49:19Z</dc:date>
    </item>
  </channel>
</rss>

