<?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: Loading two tables as one and having a where clause in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-two-tables-as-one-and-having-a-where-clause/m-p/1512171#M751195</link>
    <description>&lt;P&gt;In that case, may be all you need is to use ApplyMap&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.quickintelligence.co.uk/applymap-is-it-so-wrong/" target="_blank"&gt;QlikView ApplyMap - Is It So Wrong?&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Nov 2018 12:11:29 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2018-11-26T12:11:29Z</dc:date>
    <item>
      <title>Loading two tables as one and having a where clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-two-tables-as-one-and-having-a-where-clause/m-p/1512158#M751194</link>
      <description>&lt;P&gt;I have 2 tables tableA and tableB.&lt;/P&gt;&lt;P&gt;I want to load them together with a LEFT JOIN and return the fields from tableA while using tableB fields in the where clause.&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;PRE&gt;tableC:
LOAD MT, MKA, moves FROM $(vPATH)\tableA.QVD (qvd);
LEFT JOIN (tableC) LOAD costart, coend, IDID FROM $(vPATH)\tableB.QVD (qvd)
WHERE (MT &amp;gt;= costart AND MT &amp;lt;= coend);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial black,avant garde" size="5" color="#FF0000"&gt;&lt;STRONG&gt;&amp;nbsp;I dont want to join the tables, i just want to use tableB as parameters for tableA&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-two-tables-as-one-and-having-a-where-clause/m-p/1512158#M751194</guid>
      <dc:creator>matthewp</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loading two tables as one and having a where clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-two-tables-as-one-and-having-a-where-clause/m-p/1512171#M751195</link>
      <description>&lt;P&gt;In that case, may be all you need is to use ApplyMap&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.quickintelligence.co.uk/applymap-is-it-so-wrong/" target="_blank"&gt;QlikView ApplyMap - Is It So Wrong?&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 12:11:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-two-tables-as-one-and-having-a-where-clause/m-p/1512171#M751195</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-26T12:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: Loading two tables as one and having a where clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-two-tables-as-one-and-having-a-where-clause/m-p/1512281#M751196</link>
      <description>&lt;P&gt;I think I would go with the suggestion from Sunny but you could also use a join if you populate your start and end. It might be look like:&lt;/P&gt;&lt;PRE&gt;tableC:
LOAD MT, MKA, moves FROM $(vPATH)\tableA.QVD (qvd);
LEFT JOIN (tableC) 
LOAD costart + iterno() -1 as MT, IDID FROM $(vPATH)\tableB.QVD (qvd)
WHILE costart + iterno() - &amp;lt;= coend;&lt;/PRE&gt;&lt;P&gt;Whereby you will further need&amp;nbsp; a common ID both loadings (and by the mapping-approach, too).&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2018 13:46:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-two-tables-as-one-and-having-a-where-clause/m-p/1512281#M751196</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2018-11-26T13:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Loading two tables as one and having a where clause</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-two-tables-as-one-and-having-a-where-clause/m-p/1512419#M751197</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to do it in two steps: first do the join to have all fields in one table, and then load that intermediate table using the where clause.You will need an ID field to join the tables.&amp;nbsp; At the end You can only have the fields from TableA.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;TableA:
LOAD 
ID, Field_1, Field_2, Field_3 from TableA.Qvd(qvd);
left join (TableA) 
LOAD ID, Parameter_1, Parameter_2 from TableB.qvd(qvd);

TableC:
LOAD 
ID, Field_1, Field_2, Field_3
Resident TableA
Where Field_1 &amp;gt; Parameter_1 and Field_2 &amp;gt; Parameter_2;&lt;/PRE&gt;</description>
      <pubDate>Mon, 26 Nov 2018 16:54:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-two-tables-as-one-and-having-a-where-clause/m-p/1512419#M751197</guid>
      <dc:creator>PabloMC</dc:creator>
      <dc:date>2018-11-26T16:54:01Z</dc:date>
    </item>
  </channel>
</rss>

