<?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 EXISTS - can I specify a table_name? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/EXISTS-can-I-specify-a-table-name/m-p/649516#M1318689</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a rather complicated tool for historizing personell_data - comparing every day if any emps have left and if any emps have started.&lt;/P&gt;&lt;P&gt;In this, I use the &amp;gt;WHERE NOT EXISTS()&amp;lt; several times.&lt;/P&gt;&lt;P&gt;I just wonder - there are a few RESIDENT LOADs, so there might be confusion with the field_names. I think it works, but I like to keep everything as explicit as possible, just makes everything easier to maintain.&lt;/P&gt;&lt;P&gt;Can I, in an EXISTS()_clause, specify a table_name along with the field_name so that it's quite clear which field is being referred to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
    <dc:creator>datanibbler</dc:creator>
    <dc:date>2026-01-26T18:19:17Z</dc:date>
    <item>
      <title>EXISTS - can I specify a table_name?</title>
      <link>https://community.qlik.com/t5/QlikView/EXISTS-can-I-specify-a-table-name/m-p/649516#M1318689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a rather complicated tool for historizing personell_data - comparing every day if any emps have left and if any emps have started.&lt;/P&gt;&lt;P&gt;In this, I use the &amp;gt;WHERE NOT EXISTS()&amp;lt; several times.&lt;/P&gt;&lt;P&gt;I just wonder - there are a few RESIDENT LOADs, so there might be confusion with the field_names. I think it works, but I like to keep everything as explicit as possible, just makes everything easier to maintain.&lt;/P&gt;&lt;P&gt;Can I, in an EXISTS()_clause, specify a table_name along with the field_name so that it's quite clear which field is being referred to?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Jan 2026 18:19:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXISTS-can-I-specify-a-table-name/m-p/649516#M1318689</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2026-01-26T18:19:17Z</dc:date>
    </item>
    <item>
      <title>Re: EXISTS - can I specify a table_name?</title>
      <link>https://community.qlik.com/t5/QlikView/EXISTS-can-I-specify-a-table-name/m-p/649517#M1318692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can like(with a dot):&lt;/P&gt;&lt;P&gt;Where Exists(tablename&lt;STRONG&gt;.&lt;/STRONG&gt;Field1, field2)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 07:42:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXISTS-can-I-specify-a-table-name/m-p/649517#M1318692</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-08-26T07:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: EXISTS - can I specify a table_name?</title>
      <link>https://community.qlik.com/t5/QlikView/EXISTS-can-I-specify-a-table-name/m-p/649518#M1318694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent!&lt;/P&gt;&lt;P&gt;Thanks! I'll do that right away.&lt;/P&gt;&lt;P&gt;You know, I am pretty sure it works - in fact, it was working, only a while ago I forgot an EXIT command in the code and so it "ran on empty"... but it's like driving a car: Seeing another car and thinking "I need to break" is not enough, you have to let the other driver know you've seen him and you're going to break.&lt;/P&gt;&lt;P&gt;I'm going to insert that into the commands so anyone looking at the code lateron will get an idea of what's being done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Aug 2014 08:01:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXISTS-can-I-specify-a-table-name/m-p/649518#M1318694</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-08-26T08:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: Re: EXISTS - can I specify a table_name?</title>
      <link>https://community.qlik.com/t5/QlikView/EXISTS-can-I-specify-a-table-name/m-p/649519#M1318696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a wee problem now: In my historization_table (that is the data from yesterday), there are 888 lines - 888 emps, that is.&lt;/P&gt;&lt;P&gt;In my "new_data" (data that I drew from the database today) there are 887 - so 1 employee must have left the company since yesterday.&lt;/P&gt;&lt;P&gt;I then compare those two tables in both directions to find out about both&lt;/P&gt;&lt;P&gt;- employees who are in the today_table, but not in the history_table (new starters)&lt;/P&gt;&lt;P&gt;- employees who are in the history_table, but not in the today_table (leavers)&lt;/P&gt;&lt;P&gt;&amp;lt;=&amp;gt; This doesn't work. According to the log, that 1 employee is not considered.&lt;/P&gt;&lt;P&gt;As always with personell_data, providing sample_data is a bit tricky, but I can provide my code - it used to work until mid-July, so I guess it's something about that WHERE-thing that you told me yesterday - or rather about how I used it&lt;/P&gt;&lt;P&gt;I will attach the code so as not to let this post get too big and cumbersome to read.&lt;/P&gt;&lt;P&gt;Please have a look and see where the error is - as I said, it used to work, so it is correct in principal. It must be some little thing.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: I hope you're ok with German, the comments are all in German as we're a German company and way too many Germans don't quite understand English ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.P.S.: It's definitely that tablename-thingy in the EXISTS() clause - I removed it and it works just as expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 06:27:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXISTS-can-I-specify-a-table-name/m-p/649519#M1318696</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-08-27T06:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: EXISTS - can I specify a table_name?</title>
      <link>https://community.qlik.com/t5/QlikView/EXISTS-can-I-specify-a-table-name/m-p/649520#M1318698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DataNibbler,&lt;/P&gt;&lt;P&gt;I am unfortunately not okay with German(language only. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/silly.png" /&gt;). However, that might not be a big issue. I preferred to explore with a sample data. Thank you that your issue drove me to a new finding. I tried like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Old:&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Load ID Inline [&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;ID&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;1&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;2&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;3&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;4];&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;New:&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Load ID Inline [&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;ID&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;2&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;3&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;4&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;5&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Added:&amp;nbsp; &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;load &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt; ID as AddedID&amp;nbsp; &lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Resident New where not Exists(New.ID, ID);&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Deleted:&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;EM&gt; ID as DeletedID&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="; font-size: 10pt;"&gt;&lt;EM&gt;Resident Old Where not Exists (New.ID, ID);&amp;nbsp; &lt;/EM&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="font-size: 10pt; text-decoration: underline;"&gt;And that resulted:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; font-size: 10pt;"&gt;&lt;EM&gt;&lt;IMG __jive_id="65321" alt="Screen Shot 08-27-14 at 12.46 PM.PNG.png" class="jive-image" src="/legacyfs/online/65321_Screen Shot 08-27-14 at 12.46 PM.PNG.png" /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="; font-size: 10pt;"&gt;&lt;EM&gt;&lt;IMG __jive_id="65322" alt="Screen Shot 08-27-14 at 12.54 PM.PNG.png" class="jive-image" src="/legacyfs/online/65322_Screen Shot 08-27-14 at 12.54 PM.PNG.png" /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Alternative(Renaming the field) Tried:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;EM&gt;Old:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Load ID Inline [&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ID&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;4];&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;New:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Load &lt;STRONG&gt;ID as IDNew&lt;/STRONG&gt; Inline [&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;ID&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;3&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;4&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;5&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;];&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Added:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;load &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; IDNew as AddedID&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Resident New where not Exists(ID,&lt;STRONG&gt; IDNew&lt;/STRONG&gt;);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NoConcatenate&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Deleted:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Load&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; ID as DeletedID&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Resident Old Where not Exists (&lt;STRONG&gt;IDNew&lt;/STRONG&gt;, ID);&amp;nbsp; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;IMG __jive_id="65323" alt="Screen Shot 08-27-14 at 12.52 PM.PNG.png" class="jive-image" src="/legacyfs/online/65323_Screen Shot 08-27-14 at 12.52 PM.PNG.png" /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="65325" alt="Screen Shot 08-27-14 at 12.53 PM.PNG.png" class="jive-image" src="/legacyfs/online/65325_Screen Shot 08-27-14 at 12.53 PM.PNG.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To conclude, my findinds(as long as anybody else finds otherwise) are:&lt;/P&gt;&lt;P&gt;Exists() - actually doesn't throw any error if the field &amp;lt;first parameter&amp;gt; is a vague one. [That is why there was no error with &amp;lt;tablename&amp;gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&amp;lt;field&amp;gt; convention; &lt;STRONG&gt;actually it doesn't take table reference. &lt;/STRONG&gt;However, it may sometimes confuse one when it works preceded by a&amp;nbsp; &lt;STRONG&gt;Qualify &lt;/STRONG&gt;key, because that actually generates field name with table reference.]&lt;/P&gt;&lt;P&gt;Hence, my alternative way of renaming the fields is the one I recommend. Note, you can keep the original fields in additiona to these new names to maintain the table relationships and delete (by using 'Drop Fields') unwanted fields at the end.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 07:46:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXISTS-can-I-specify-a-table-name/m-p/649520#M1318698</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-08-27T07:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: EXISTS - can I specify a table_name?</title>
      <link>https://community.qlik.com/t5/QlikView/EXISTS-can-I-specify-a-table-name/m-p/649521#M1318700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I already have a comment for each of the WHERE()_clauses, actually that should&amp;nbsp; be sufficient if one just reads it &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I will try renaming the fields to make it quite clear what is meant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DataNibbler&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 07:51:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/EXISTS-can-I-specify-a-table-name/m-p/649521#M1318700</guid>
      <dc:creator>datanibbler</dc:creator>
      <dc:date>2014-08-27T07:51:23Z</dc:date>
    </item>
  </channel>
</rss>

