<?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 Use load statement in other sql statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-load-statement-in-other-sql-statement/m-p/586410#M1111844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a query, and with this result (Table_A)&lt;/P&gt;&lt;P&gt;i want to use it in another query in the script editor.&lt;/P&gt;&lt;P&gt;Is this possible like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_A:&lt;/P&gt;&lt;P&gt;Select ID_A from AAA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_B:&lt;/P&gt;&lt;P&gt;Select * from BBB&lt;/P&gt;&lt;P&gt;where id in (LOAD ID_A from Table_A)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do i have to use a loop:&lt;/P&gt;&lt;P&gt;Get one value from Table_A go through the loop&lt;/P&gt;&lt;P&gt;Store result in Table_B and then get next value of Table_A?&lt;/P&gt;&lt;P&gt;I know it works like this, but i takes a lot of time, because of the big data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Alwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Mar 2014 08:21:26 GMT</pubDate>
    <dc:creator>alwinsch</dc:creator>
    <dc:date>2014-03-18T08:21:26Z</dc:date>
    <item>
      <title>Use load statement in other sql statement</title>
      <link>https://community.qlik.com/t5/QlikView/Use-load-statement-in-other-sql-statement/m-p/586410#M1111844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a query, and with this result (Table_A)&lt;/P&gt;&lt;P&gt;i want to use it in another query in the script editor.&lt;/P&gt;&lt;P&gt;Is this possible like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_A:&lt;/P&gt;&lt;P&gt;Select ID_A from AAA;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_B:&lt;/P&gt;&lt;P&gt;Select * from BBB&lt;/P&gt;&lt;P&gt;where id in (LOAD ID_A from Table_A)&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do i have to use a loop:&lt;/P&gt;&lt;P&gt;Get one value from Table_A go through the loop&lt;/P&gt;&lt;P&gt;Store result in Table_B and then get next value of Table_A?&lt;/P&gt;&lt;P&gt;I know it works like this, but i takes a lot of time, because of the big data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kind regards,&lt;/P&gt;&lt;P&gt;Alwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 08:21:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-load-statement-in-other-sql-statement/m-p/586410#M1111844</guid>
      <dc:creator>alwinsch</dc:creator>
      <dc:date>2014-03-18T08:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use load statement in other sql statement</title>
      <link>https://community.qlik.com/t5/QlikView/Use-load-statement-in-other-sql-statement/m-p/586411#M1111845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try where exists() function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table_A:&lt;/P&gt;&lt;P&gt;Load ID_A as ID&lt;/P&gt;&lt;P&gt;from AAA;&lt;/P&gt;&lt;P&gt; &lt;BR /&gt;Table_B:&lt;/P&gt;&lt;P&gt;Load ID, * from BBB&lt;/P&gt;&lt;P&gt;where exists(ID);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 10:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-load-statement-in-other-sql-statement/m-p/586411#M1111845</guid>
      <dc:creator />
      <dc:date>2014-03-18T10:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use load statement in other sql statement</title>
      <link>https://community.qlik.com/t5/QlikView/Use-load-statement-in-other-sql-statement/m-p/586412#M1111846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have different possibilities&lt;/P&gt;&lt;P&gt;replace my load * inline with your sql select ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;with keep (tables associated)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Table_A:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;load * inline [&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ID_A&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;3&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;4&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;5&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;];&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;TableB:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;left Keep (Table_A) load id as ID_A, val;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;load * inline [&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;id,val&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2,2&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;4,4&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;6,6&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;];&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;with exists (tables associated), see previous answer&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;with exists (tables not associated)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;Table_A:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;load * inline [&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;ID_A&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;1&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;3&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;4&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;5&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;];&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;TableB:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;load * where exists(ID_A, id); &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;load * inline [&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;id,val &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;2,2 &lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;4,4&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;6,6&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 21:12:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-load-statement-in-other-sql-statement/m-p/586412#M1111846</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2014-03-18T21:12:49Z</dc:date>
    </item>
  </channel>
</rss>

