<?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 loop through a table and load another by ID in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/loop-through-a-table-and-load-another-by-ID/m-p/204183#M61198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;could be that I have forgitten everything, but I am stuck with that Problem:&lt;/P&gt;&lt;P&gt;I Load a "Header" Table form the Database. In that table there is a ID wich is FK in an other table with details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant load the whole detail table because thats too many records.&lt;/P&gt;&lt;P&gt;So I want to LOOP throgh the header Table and select all detail records for every ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In exaple:&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;Header:&lt;BR /&gt;LOAD ID;&lt;BR /&gt;Select ID from header_table;&lt;BR /&gt;&lt;BR /&gt;for each ID in Header&lt;BR /&gt;Detail:&lt;BR /&gt;LOAD &amp;lt;All Fields&amp;gt;;&lt;BR /&gt;Select * from Detail_table where FK_ID = ID;&lt;BR /&gt;LOOP;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Nov 2010 11:59:45 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-11-29T11:59:45Z</dc:date>
    <item>
      <title>loop through a table and load another by ID</title>
      <link>https://community.qlik.com/t5/QlikView/loop-through-a-table-and-load-another-by-ID/m-p/204183#M61198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;could be that I have forgitten everything, but I am stuck with that Problem:&lt;/P&gt;&lt;P&gt;I Load a "Header" Table form the Database. In that table there is a ID wich is FK in an other table with details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant load the whole detail table because thats too many records.&lt;/P&gt;&lt;P&gt;So I want to LOOP throgh the header Table and select all detail records for every ID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In exaple:&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;Header:&lt;BR /&gt;LOAD ID;&lt;BR /&gt;Select ID from header_table;&lt;BR /&gt;&lt;BR /&gt;for each ID in Header&lt;BR /&gt;Detail:&lt;BR /&gt;LOAD &amp;lt;All Fields&amp;gt;;&lt;BR /&gt;Select * from Detail_table where FK_ID = ID;&lt;BR /&gt;LOOP;&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Nov 2010 11:59:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/loop-through-a-table-and-load-another-by-ID/m-p/204183#M61198</guid>
      <dc:creator />
      <dc:date>2010-11-29T11:59:45Z</dc:date>
    </item>
  </channel>
</rss>

