<?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: Where not exists Client_ID in a specific table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Where-not-exists-Client-ID-in-a-specific-table/m-p/602829#M681334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Someone deleted Table X from my source &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;Can't test it anymore this week. But I think it'll work, so ... "Correct answer" &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2014 16:28:49 GMT</pubDate>
    <dc:creator>kristof_j</dc:creator>
    <dc:date>2014-03-20T16:28:49Z</dc:date>
    <item>
      <title>Where not exists Client_ID in a specific table</title>
      <link>https://community.qlik.com/t5/QlikView/Where-not-exists-Client-ID-in-a-specific-table/m-p/602824#M681329</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 need to find a Client_ID from table X that didn't exist in table B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that all Client_IDs are already loaded in table A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I use a where not exists (Client_ID) than it will delete everyone in table X, which I don't want.&lt;BR /&gt;Or can I use a where not exists where it will check for the Client_ID in a specific table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; example:&lt;/P&gt;&lt;P&gt;Table A has all Client_IDs&lt;BR /&gt;Table B has some Clients&lt;BR /&gt;Table X has some Client_ID but I want the one who isn't in Table B&lt;BR /&gt;Table Y is my new table with only Client_ID 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="padding: 2px; text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Table A&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="padding: 2px; text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Table B&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="padding: 2px; text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Table X&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="padding: 2px; text-align: center; color: #ffffff; background-color: #6690bc;" valign="middle"&gt;&lt;STRONG&gt;Table Y&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;Client_ID&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Client_ID&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Client_ID&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Client_ID&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;1&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:56:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-not-exists-Client-ID-in-a-specific-table/m-p/602824#M681329</guid>
      <dc:creator>kristof_j</dc:creator>
      <dc:date>2014-03-20T14:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Where not exists Client_ID in a specific table</title>
      <link>https://community.qlik.com/t5/QlikView/Where-not-exists-Client-ID-in-a-specific-table/m-p/602825#M681330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kristof,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could accomplish this by adding a new column &lt;SPAN style="color: #800000;"&gt;Client_ID2&lt;/SPAN&gt; to your table which would be a copy of the &lt;SPAN style="color: #800000;"&gt;Client_ID&lt;/SPAN&gt; field, but renamed so that you could refer to it later on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, by using the &lt;SPAN style="color: #0000ff;"&gt;Exists&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;Client_ID2&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;Client_ID&lt;/SPAN&gt;) condition, you'll be able to apply your desired filtering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you are done with your load, you can remove the extra column by using the Drop Field instruction as such:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;DROP&lt;/STRONG&gt; Field&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Client_ID2&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philippe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 15:02:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-not-exists-Client-ID-in-a-specific-table/m-p/602825#M681330</guid>
      <dc:creator>pgrenier</dc:creator>
      <dc:date>2014-03-20T15:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Where not exists Client_ID in a specific table</title>
      <link>https://community.qlik.com/t5/QlikView/Where-not-exists-Client-ID-in-a-specific-table/m-p/602826#M681331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kristof&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest you add a special field when you load table B:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;LOAD Client_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Client_ID As IDs_to_exclude&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then when you load table X:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load Client_ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Where Not Exists(IDs_to_exclude,Client_ID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Then you can drop&lt;/P&gt;&lt;P&gt;Drop Field IDs_to_exclude;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 15:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-not-exists-Client-ID-in-a-specific-table/m-p/602826#M681331</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2014-03-20T15:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Where not exists Client_ID in a specific table</title>
      <link>https://community.qlik.com/t5/QlikView/Where-not-exists-Client-ID-in-a-specific-table/m-p/602827#M681332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jacobs, the Where Not Exists should work in the above. Please find the below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLEA:&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; Clinet_ID , Clinet_ID&amp;nbsp; AS Client_A INLINE [&lt;/P&gt;&lt;P&gt;Clinet_ID &lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;4 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLEB:&lt;/P&gt;&lt;P&gt;LOAD Clinet_ID , Clinet_ID&amp;nbsp; AS Client_B&lt;/P&gt;&lt;P&gt;Where Not Exists (Clinet_ID)&lt;/P&gt;&lt;P&gt;LOAD&amp;nbsp; * INLINE [&lt;/P&gt;&lt;P&gt;Clinet_ID &lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;5 ];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above script, the Client_ID have: 1 2 3 4 5 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for testing, Please make sure that don't keep all the fields are are same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 15:06:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-not-exists-Client-ID-in-a-specific-table/m-p/602827#M681332</guid>
      <dc:creator />
      <dc:date>2014-03-20T15:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Where not exists Client_ID in a specific table</title>
      <link>https://community.qlik.com/t5/QlikView/Where-not-exists-Client-ID-in-a-specific-table/m-p/602828#M681333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Philippe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't test it right now but it sounds plausible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll mark it answered the minute I can check it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 15:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-not-exists-Client-ID-in-a-specific-table/m-p/602828#M681333</guid>
      <dc:creator>kristof_j</dc:creator>
      <dc:date>2014-03-20T15:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Where not exists Client_ID in a specific table</title>
      <link>https://community.qlik.com/t5/QlikView/Where-not-exists-Client-ID-in-a-specific-table/m-p/602829#M681334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Someone deleted Table X from my source &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;P&gt;Can't test it anymore this week. But I think it'll work, so ... "Correct answer" &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 16:28:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Where-not-exists-Client-ID-in-a-specific-table/m-p/602829#M681334</guid>
      <dc:creator>kristof_j</dc:creator>
      <dc:date>2014-03-20T16:28:49Z</dc:date>
    </item>
  </channel>
</rss>

