<?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 Subselect statement resident in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Subselect-statement-resident/m-p/266304#M100111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so change to:&lt;/P&gt;&lt;P&gt;Resident Crediteuren_tmp2 where Verschilbedrag &amp;lt;&amp;gt; 0 and not exists (Factuurnummer);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jun 2011 14:49:05 GMT</pubDate>
    <dc:creator>martinpohl</dc:creator>
    <dc:date>2011-06-06T14:49:05Z</dc:date>
    <item>
      <title>Subselect statement resident</title>
      <link>https://community.qlik.com/t5/QlikView/Subselect-statement-resident/m-p/266301#M100108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question. I wanna load records from a SQL database which are not in a resident table. Is this possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thougt something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;field_ a,&lt;/P&gt;&lt;P&gt;field_b,&lt;/P&gt;&lt;P&gt;from SQLTABLE where field_a not in (resident QVTABLE)&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 11:10:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subselect-statement-resident/m-p/266301#M100108</guid>
      <dc:creator>francisvandergr</dc:creator>
      <dc:date>2011-06-06T11:10:06Z</dc:date>
    </item>
    <item>
      <title>Subselect statement resident</title>
      <link>https://community.qlik.com/t5/QlikView/Subselect-statement-resident/m-p/266302#M100109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try:&lt;/P&gt;&lt;P&gt;where not exists (field_a)&lt;/P&gt;&lt;P&gt;unfortunately you can not define in table, the value field_a is checked for all datas.&lt;/P&gt;&lt;P&gt;If you need only the values from table1 load the value field_1 additional as field_exist and change the syntax to&lt;/P&gt;&lt;P&gt;where not exists( field_exist, field_a)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 11:20:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subselect-statement-resident/m-p/266302#M100109</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2011-06-06T11:20:47Z</dc:date>
    </item>
    <item>
      <title>Subselect statement resident</title>
      <link>https://community.qlik.com/t5/QlikView/Subselect-statement-resident/m-p/266303#M100110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi Martin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answer. Maybe i do not understand you enough. Now i include a part of my script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Orderfacturen:&lt;BR /&gt;NULLASVALUE *;&lt;BR /&gt;load&lt;BR /&gt;Factuurnummer,&lt;BR /&gt;Crediteur,&lt;BR /&gt;Cred\Openstaand,&lt;BR /&gt;Ordernummer,&lt;BR /&gt;artcode,&lt;BR /&gt;Ontvangenbedrag&lt;/P&gt;&lt;P&gt;Resident Crediteuren_tmp where Ontvangenbedrag &amp;gt; 0 or Ontvangenbedrag &amp;lt; 0;&lt;BR /&gt;drop table Crediteuren_tmp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate&lt;BR /&gt;NULLASVALUE *;&lt;BR /&gt;load&lt;BR /&gt;Factuurnummer,&lt;BR /&gt;Crediteur,&lt;BR /&gt;Cred\Openstaand,&lt;BR /&gt;Ordernummer,&lt;BR /&gt;artcode,&lt;BR /&gt;Verschilbedrag as Ontvangenbedrag&lt;BR /&gt;Resident Crediteuren_tmp2 where Verschilbedrag &amp;lt;&amp;gt; 0;&lt;BR /&gt;drop table Crediteuren_tmp2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; What i want with the part after concatenate is: only load&amp;nbsp; records with the same FACTUURNUMMERS which are in&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; the table orderfacturen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00b400; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00b400; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 14:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subselect-statement-resident/m-p/266303#M100110</guid>
      <dc:creator>francisvandergr</dc:creator>
      <dc:date>2011-06-06T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Subselect statement resident</title>
      <link>https://community.qlik.com/t5/QlikView/Subselect-statement-resident/m-p/266304#M100111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so change to:&lt;/P&gt;&lt;P&gt;Resident Crediteuren_tmp2 where Verschilbedrag &amp;lt;&amp;gt; 0 and not exists (Factuurnummer);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 14:49:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subselect-statement-resident/m-p/266304#M100111</guid>
      <dc:creator>martinpohl</dc:creator>
      <dc:date>2011-06-06T14:49:05Z</dc:date>
    </item>
    <item>
      <title>Subselect statement resident</title>
      <link>https://community.qlik.com/t5/QlikView/Subselect-statement-resident/m-p/266305#M100112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I have chaged it to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident Crediteuren_tmp2 where Verschilbedrag &amp;lt;&amp;gt; 0 and exists (Factuurnummer); &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because i want concatenate records with Fcatuurnummer which are also in Orderfacturen. But this doesn't work. Sorry. I see all invoices&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jun 2011 15:01:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subselect-statement-resident/m-p/266305#M100112</guid>
      <dc:creator>francisvandergr</dc:creator>
      <dc:date>2011-06-06T15:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Subselect statement resident</title>
      <link>https://community.qlik.com/t5/QlikView/Subselect-statement-resident/m-p/266306#M100113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;francisvandergrijn wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a question. I wanna load records from a SQL database which are not in a resident table. Is this possible ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thougt something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &lt;/P&gt;&lt;P&gt;field_ a,&lt;/P&gt;&lt;P&gt;field_b,&lt;/P&gt;&lt;P&gt;from SQLTABLE where field_a not in (resident QVTABLE) &lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this if it's important for performance to do it on the SQL side instead of the QlikView side:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;[field_a values]:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD concat(field_a,chr(39)&amp;amp;','&amp;amp;chr(39)) as "field_a values"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD DISTINCT field_a // there's a faster way to do this if field_a is ONLY in QVTABLE at this point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;RESIDENT QVTABLE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LET vFieldAValues = peek('field_a values');&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;DROP TABLE [field_a values];&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SomeTable:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;LOAD *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;SQL SELECT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;field_a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;,field_b&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FROM SQLTABLE&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;WHERE field_a NOT IN('$(vFieldAValues)')&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hmmm, and then it looks like you're asking for something completely different in your next post.&amp;nbsp; So I'm probably misunderstanding.&amp;nbsp; Posting it anyway just in case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 00:46:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Subselect-statement-resident/m-p/266306#M100113</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2011-06-07T00:46:28Z</dc:date>
    </item>
  </channel>
</rss>

