<?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 How to do this sql load from multiple tables from qvd-files? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-do-this-sql-load-from-multiple-tables-from-qvd-files/m-p/195972#M56240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Think that the INNER JOIN-function may help you (not tested):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD * FROM UTFALL.qvd WHERE Year = $(iYear) ...;&lt;BR /&gt;INNER JOIN LOAD ID FROM KTO.qvd;&lt;BR /&gt;INNER JOIN LOAD AONR FROM ARB.qvd;&lt;BR /&gt;...&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Am not sure, whether you may do a preceding load in order to reflect the last line above or whether this must be done in a second step (with resident load).&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Feb 2011 15:38:02 GMT</pubDate>
    <dc:creator>prieper</dc:creator>
    <dc:date>2011-02-01T15:38:02Z</dc:date>
    <item>
      <title>How to do this sql load from multiple tables from qvd-files?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-this-sql-load-from-multiple-tables-from-qvd-files/m-p/195971#M56239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm into reading from stored .qvd files instead of reading from DB-tables. I have qvd-files named as the DB-tables containing the whole table data.&lt;/P&gt;&lt;P&gt;What is best practice to perform such a load that is pasted below when reading from qvd-files instead?&lt;/P&gt;&lt;P&gt;It seems to me that I cannot add a variable name to the qvd's. Do I have to read in all the qvds involved, store them i residents and then use "where exists()" and finally drop the individual qvd-files?&lt;/P&gt;&lt;P&gt;brgds&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt;&lt;BR /&gt;LOAD&lt;BR /&gt; ID as UTFID_test;&lt;BR /&gt; SQL SELECT&lt;BR /&gt; utf.ID&lt;BR /&gt; FROM $(DB_SCHEMA).UTFALL utf, $(DB_SCHEMA).UTFALLKTOKOD kto, $(DB_SCHEMA).ARBORDER arb, $(AFFAR_tabell) ea&lt;BR /&gt; WHERE utf.Year=$(Year) AND utf.Month=$(Month) AND kto.UTFID=utf.ID AND utf.AONR=arb.AONR&lt;BR /&gt; AND ea.AFFAR_ID = arb.AFFAR_ID&lt;BR /&gt; AND NOT (kto.KONTOKOD in ('A1','B1') AND (ea.KATEGORI like 'F%'));&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 14:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-this-sql-load-from-multiple-tables-from-qvd-files/m-p/195971#M56239</guid>
      <dc:creator>andy</dc:creator>
      <dc:date>2011-02-01T14:30:54Z</dc:date>
    </item>
    <item>
      <title>How to do this sql load from multiple tables from qvd-files?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-do-this-sql-load-from-multiple-tables-from-qvd-files/m-p/195972#M56240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Think that the INNER JOIN-function may help you (not tested):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;LOAD * FROM UTFALL.qvd WHERE Year = $(iYear) ...;&lt;BR /&gt;INNER JOIN LOAD ID FROM KTO.qvd;&lt;BR /&gt;INNER JOIN LOAD AONR FROM ARB.qvd;&lt;BR /&gt;...&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Am not sure, whether you may do a preceding load in order to reflect the last line above or whether this must be done in a second step (with resident load).&lt;/P&gt;&lt;P&gt;HTH&lt;BR /&gt;Peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 15:38:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-do-this-sql-load-from-multiple-tables-from-qvd-files/m-p/195972#M56240</guid>
      <dc:creator>prieper</dc:creator>
      <dc:date>2011-02-01T15:38:02Z</dc:date>
    </item>
  </channel>
</rss>

