<?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 Re: Concatenate load where not exists from a sql server in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Concatenate-load-where-not-exists-from-a-sql-server/m-p/1517844#M599535</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/51390"&gt;@ahmed_hassan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Could you try:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Where Not Exists(ID,'ID')&lt;/PRE&gt;&lt;P&gt;OR&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Where Not Exists('ID',ID)&lt;/PRE&gt;&lt;P&gt;The text between the qoutes defines the field from the SQL source.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Dec 2018 09:30:54 GMT</pubDate>
    <dc:creator>avkeep01</dc:creator>
    <dc:date>2018-12-07T09:30:54Z</dc:date>
    <item>
      <title>Concatenate load where not exists from a sql server</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-load-where-not-exists-from-a-sql-server/m-p/1517842#M599534</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I am trying to concatenate a QVD table with an SQL table. However, &amp;nbsp;where not exists is not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Source:
LOAD ID, 
     Price, 
     Status, 
     Date
FROM
[..\QVDs\Source.qvd]
(qvd);

Concatenate(Source)
LOAD ID, 
     Price, 
     Status, 
     Date,&lt;BR /&gt;Where Not Exists (ID);&lt;BR /&gt;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM SAP.dbo.SQL;


STORE Source into [$(FolderExtract)Source.qvd] (qvd);



drop Table Source;&lt;/PRE&gt;&lt;P&gt;I have tried to use "Where Not Exists(ID)" in different places, but I get 0 data from the SQL server.&lt;/P&gt;&lt;P&gt;Just for info:I tested&amp;nbsp;"where WildMatch(Status,'*Open*')" and everything worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 09:26:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-load-where-not-exists-from-a-sql-server/m-p/1517842#M599534</guid>
      <dc:creator>ahmed_hassan</dc:creator>
      <dc:date>2018-12-07T09:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate load where not exists from a sql server</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-load-where-not-exists-from-a-sql-server/m-p/1517844#M599535</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/51390"&gt;@ahmed_hassan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Could you try:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Where Not Exists(ID,'ID')&lt;/PRE&gt;&lt;P&gt;OR&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Where Not Exists('ID',ID)&lt;/PRE&gt;&lt;P&gt;The text between the qoutes defines the field from the SQL source.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 09:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-load-where-not-exists-from-a-sql-server/m-p/1517844#M599535</guid>
      <dc:creator>avkeep01</dc:creator>
      <dc:date>2018-12-07T09:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate load where not exists from a sql server</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-load-where-not-exists-from-a-sql-server/m-p/1517846#M599536</link>
      <description>It didn't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;</description>
      <pubDate>Fri, 07 Dec 2018 09:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-load-where-not-exists-from-a-sql-server/m-p/1517846#M599536</guid>
      <dc:creator>ahmed_hassan</dc:creator>
      <dc:date>2018-12-07T09:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate load where not exists from a sql server</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-load-where-not-exists-from-a-sql-server/m-p/1517848#M599537</link>
      <description>&lt;P&gt;What happens is that every ID is pulled from the SQL server table. Then each record from the SQL server table is pushed upwards to be processed in the preceding LOAD with the where exists clause. But by the time that where exists is applied the ID is already fetched from the SQL server table. What I think happens is that that means the ID value already exists by then and the where exists clause will discard that record.&lt;/P&gt;&lt;P&gt;You can solve that by doing things a little different:&lt;/P&gt;&lt;PRE&gt;Source:
LOAD ID, 
    ID as ID_Lookup,
     Price, 
     Status, 
     Date
FROM
[..\QVDs\Source.qvd]
(qvd);

Concatenate(Source)
LOAD ID,
     Price, 
     Status, 
     Date,
Where Not Exists (ID_Lookup, ID);

DROP FIELD ID_Lookup
SQL SELECT *
FROM SAP.dbo.SQL;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Dec 2018 09:35:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-load-where-not-exists-from-a-sql-server/m-p/1517848#M599537</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-12-07T09:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: Concatenate load where not exists from a sql server</title>
      <link>https://community.qlik.com/t5/QlikView/Concatenate-load-where-not-exists-from-a-sql-server/m-p/1517853#M599538</link>
      <description>It worked! Thanks a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;</description>
      <pubDate>Fri, 07 Dec 2018 09:46:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Concatenate-load-where-not-exists-from-a-sql-server/m-p/1517853#M599538</guid>
      <dc:creator>ahmed_hassan</dc:creator>
      <dc:date>2018-12-07T09:46:32Z</dc:date>
    </item>
  </channel>
</rss>

