<?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 load subquery conditional in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/load-subquery-conditional/m-p/183715#M48870</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;BR /&gt;&lt;BR /&gt;I'm facing a problem:&lt;BR /&gt;&lt;BR /&gt;This is a database query which I would want to run on a QV table (using a load statement and a QVD as source).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;SELECT ID,PREDECESSOR_ID,STATUS,...&lt;BR /&gt;FroM T1&lt;BR /&gt;WHERE&lt;BR /&gt;ID not in (SELECT PREDECESSOR_ID FROM T1) AND&lt;BR /&gt;STATUS=OK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Goal: only display rows of table T1 for which there is no similar ID entry anywhere in the table within the PREDECESSOR_ID column.&lt;BR /&gt;&lt;BR /&gt;For some reason I don't get this working.&lt;BR /&gt;I tried also with set analysis, but this brought me even more off track.&lt;BR /&gt;&lt;BR /&gt;FYI: There is no possibility to run the query on the database directly.&lt;BR /&gt;&lt;BR /&gt;Any other approach is perfect.&lt;BR /&gt;In fact, I only need to know the number of records resulting of the query.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Jan 2011 11:29:09 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-25T11:29:09Z</dc:date>
    <item>
      <title>load subquery conditional</title>
      <link>https://community.qlik.com/t5/QlikView/load-subquery-conditional/m-p/183715#M48870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;BR /&gt;&lt;BR /&gt;I'm facing a problem:&lt;BR /&gt;&lt;BR /&gt;This is a database query which I would want to run on a QV table (using a load statement and a QVD as source).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;PRE&gt;&lt;/PRE&gt;&lt;/P&gt;&lt;P&gt;SELECT ID,PREDECESSOR_ID,STATUS,...&lt;BR /&gt;FroM T1&lt;BR /&gt;WHERE&lt;BR /&gt;ID not in (SELECT PREDECESSOR_ID FROM T1) AND&lt;BR /&gt;STATUS=OK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Goal: only display rows of table T1 for which there is no similar ID entry anywhere in the table within the PREDECESSOR_ID column.&lt;BR /&gt;&lt;BR /&gt;For some reason I don't get this working.&lt;BR /&gt;I tried also with set analysis, but this brought me even more off track.&lt;BR /&gt;&lt;BR /&gt;FYI: There is no possibility to run the query on the database directly.&lt;BR /&gt;&lt;BR /&gt;Any other approach is perfect.&lt;BR /&gt;In fact, I only need to know the number of records resulting of the query.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Maarten&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 11:29:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-subquery-conditional/m-p/183715#M48870</guid>
      <dc:creator />
      <dc:date>2011-01-25T11:29:09Z</dc:date>
    </item>
    <item>
      <title>load subquery conditional</title>
      <link>https://community.qlik.com/t5/QlikView/load-subquery-conditional/m-p/183716#M48871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;First store the Table in QVD then use the below code&lt;/P&gt;&lt;P&gt;Load ID, PREDECESSOR_ID,.....&lt;/P&gt;&lt;P&gt;from T1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;PREDECESSOR_ID as ID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from T1 where not exists (ID,PREDECESSOR_ID ) and Status = 'OK';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 12:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-subquery-conditional/m-p/183716#M48871</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-01-25T12:12:13Z</dc:date>
    </item>
    <item>
      <title>load subquery conditional</title>
      <link>https://community.qlik.com/t5/QlikView/load-subquery-conditional/m-p/183717#M48872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot! That did the job!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jan 2011 12:38:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/load-subquery-conditional/m-p/183717#M48872</guid>
      <dc:creator />
      <dc:date>2011-01-25T12:38:59Z</dc:date>
    </item>
  </channel>
</rss>

