<?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: SQL except in QS in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/SQL-except-in-QS/m-p/1758661#M58614</link>
    <description>&lt;P&gt;I'm not sure I understand the example.&amp;nbsp; Do you use EXIST like a where clause and list out each field?&lt;/P&gt;</description>
    <pubDate>Wed, 04 Nov 2020 21:41:15 GMT</pubDate>
    <dc:creator>crichter14</dc:creator>
    <dc:date>2020-11-04T21:41:15Z</dc:date>
    <item>
      <title>SQL except in QS</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-except-in-QS/m-p/1706123#M54132</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have a question related to QS and SQL. I have seen that you can load values from a table using an EXCEPT expression in SQL. So, for example,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Load * from T1

EXCEPT

Load * from T2;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will load all values from T1 except those values that exist in the T2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to do the same in QS, if possible. I have two tables T1 and T2 in SQLMS i want to read in T1 except the rows T2 has, that have been marked as delete. I would like to keep the rows in my original table but simply not load those rows in QS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;T1 has many columns but T2 has enough columns that can uniquely identify a row in T1.&lt;/P&gt;&lt;P&gt;Is it possible? if yes, could someone please provide a sample script?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:34:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-except-in-QS/m-p/1706123#M54132</guid>
      <dc:creator>waleeed_mahmood</dc:creator>
      <dc:date>2024-11-16T18:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: SQL except in QS</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-except-in-QS/m-p/1706129#M54133</link>
      <description>&lt;P&gt;Take a look at the &lt;A href="https://help.qlik.com/en-US/sense/April2020/Subsystems/Hub/Content/Sense_Hub/Scripting/InterRecordFunctions/Exists.htm" target="_self"&gt;Exists&lt;/A&gt; function.&amp;nbsp; "&lt;SPAN class="statement"&gt;Exists()&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;determines whether a specific field value has already been loaded into the field in the data load script. The function returns&amp;nbsp;&lt;/SPAN&gt;TRUE&lt;SPAN&gt;&amp;nbsp;or&amp;nbsp;&lt;/SPAN&gt;FALSE&lt;SPAN&gt;, so can be used in the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;where&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;clause of a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;LOAD&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;statement or an&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="statement"&gt;IF&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;statement."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 May 2020 16:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-except-in-QS/m-p/1706129#M54133</guid>
      <dc:creator>albertovarela</dc:creator>
      <dc:date>2020-05-28T16:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: SQL except in QS</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-except-in-QS/m-p/1758661#M58614</link>
      <description>&lt;P&gt;I'm not sure I understand the example.&amp;nbsp; Do you use EXIST like a where clause and list out each field?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 21:41:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-except-in-QS/m-p/1758661#M58614</guid>
      <dc:creator>crichter14</dc:creator>
      <dc:date>2020-11-04T21:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: SQL except in QS</title>
      <link>https://community.qlik.com/t5/App-Development/SQL-except-in-QS/m-p/1759055#M58662</link>
      <description>&lt;P&gt;The function compares a field or an expression declaring to several fields in the current load, against a single field already loaded via the script.&lt;/P&gt;&lt;P&gt;If you'd like to compare a full record (several fields) you could create a concatenated field with all your fields (maybe hash or Autonumber),&amp;nbsp;&amp;nbsp;and then use it with the Exists in the where clause.&lt;/P&gt;&lt;P&gt;Here's one example. I hope it helps&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-11-05_10-20-03.png" style="width: 928px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/43653iF909C3471E1D3F03/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-11-05_10-20-03.png" alt="2020-11-05_10-20-03.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Nov 2020 18:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/SQL-except-in-QS/m-p/1759055#M58662</guid>
      <dc:creator>albertovarela</dc:creator>
      <dc:date>2020-11-05T18:35:12Z</dc:date>
    </item>
  </channel>
</rss>

