<?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 Query with Excel exceptions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Query-with-Excel-exceptions/m-p/1627161#M733358</link>
    <description>&lt;P&gt;Something like this should do it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ExcludeCodeList:
LOAD Code
FROM YourExcelFile.xlsx;

CodeFinal:
LOAD * WHERE NOT EXISTS(Code);
SELECT Code, Name
FROM YourSQLTable;

DROP TABLE ExcludeCodeList;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Sep 2019 21:37:12 GMT</pubDate>
    <dc:creator>Nicole-Smith</dc:creator>
    <dc:date>2019-09-23T21:37:12Z</dc:date>
    <item>
      <title>SQL Query with Excel exceptions</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-with-Excel-exceptions/m-p/1627156#M733357</link>
      <description>&lt;P&gt;Hi, everyone!&lt;/P&gt;&lt;P&gt;I need to make a select in a SQL table excluding the codes that are in an already loaded Excel.&lt;BR /&gt;Example:&lt;/P&gt;&lt;P&gt;Excel (lonely column)&lt;BR /&gt;Code&lt;BR /&gt;1&lt;BR /&gt;4&lt;BR /&gt;6&lt;BR /&gt;9&lt;BR /&gt;10&lt;BR /&gt;67 (... almost 400 codes)&lt;BR /&gt;&lt;BR /&gt;SQL Server table&lt;BR /&gt;Code - Name&lt;BR /&gt;1 - Jose&lt;BR /&gt;1 - Maria&lt;BR /&gt;3 - Maria&lt;BR /&gt;3 - Carlos&lt;BR /&gt;8 - Joao&lt;BR /&gt;10 - Joao&lt;BR /&gt;10 - Pedro&lt;BR /&gt;65 - Carlos&lt;BR /&gt;67 - Carlos (... a lot of lines)&lt;/P&gt;&lt;P&gt;I need something like "Select * From SQL_Table Where Code Not Exists In Excel_Table".&lt;/P&gt;&lt;P&gt;I'm migrating an application that was in PowerBI originally, so I'm not very close to the QlikView scripting functions.&lt;/P&gt;&lt;P&gt;Thaks a lot!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-with-Excel-exceptions/m-p/1627156#M733357</guid>
      <dc:creator>CharlesNaseh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query with Excel exceptions</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-with-Excel-exceptions/m-p/1627161#M733358</link>
      <description>&lt;P&gt;Something like this should do it:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ExcludeCodeList:
LOAD Code
FROM YourExcelFile.xlsx;

CodeFinal:
LOAD * WHERE NOT EXISTS(Code);
SELECT Code, Name
FROM YourSQLTable;

DROP TABLE ExcludeCodeList;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 21:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-with-Excel-exceptions/m-p/1627161#M733358</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2019-09-23T21:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query with Excel exceptions</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-with-Excel-exceptions/m-p/1627427#M733359</link>
      <description>&lt;P&gt;Hi, Nicole.&lt;/P&gt;&lt;P&gt;Thank you for your answer. The result was something weird - only a low percent of lines should be excluded, but the final result was too low. I'll analyze the tables. May I ask you just one more question?&lt;/P&gt;&lt;P&gt;I have this case:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/t5/image/serverpage/image-id/19942i6438E212D9E6D848/image-size/medium?v=1.0&amp;amp;px=-1" border="0" title="clipboard_image_0.png" alt="clipboard_image_0.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.qlik.com/t5/image/serverpage/image-id/19951iE895105CCB0812E9/image-size/medium?v=1.0&amp;amp;px=-1" border="0" title="clipboard_image_2.png" alt="clipboard_image_2.png" /&gt;&lt;/P&gt;&lt;P&gt;I need to make a third grid = (first grid - second grid), where date = today and group by each letter&amp;nbsp; (that is a group of specified cars - the first grid is all my cars available and the second grid the cars picked by hour today and tomorrow). I need to see if I'll have enough cars today. My set analysis filters are not working. The third grid must be like this:&lt;BR /&gt;AM - 143 (492 from the first table minus 349 from the second)&lt;BR /&gt;AT - 54 (87 - 33)&lt;BR /&gt;B - 1089 (...)&lt;BR /&gt;and so on...&lt;/P&gt;&lt;P&gt;Each grid was filled from two distincts Selects in the script.&lt;/P&gt;&lt;P&gt;May you give me some idea?&lt;/P&gt;&lt;P&gt;Thanks again! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 12:44:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-with-Excel-exceptions/m-p/1627427#M733359</guid>
      <dc:creator>CharlesNaseh</dc:creator>
      <dc:date>2019-09-24T12:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query with Excel exceptions</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-with-Excel-exceptions/m-p/1627763#M733360</link>
      <description>&lt;P&gt;Can you post a sample file?&amp;nbsp; Hard to tell what you need to do without seeing data and data model.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 19:35:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-with-Excel-exceptions/m-p/1627763#M733360</guid>
      <dc:creator>Nicole-Smith</dc:creator>
      <dc:date>2019-09-24T19:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query with Excel exceptions</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-with-Excel-exceptions/m-p/1627794#M733361</link>
      <description>&lt;P&gt;Hi, again, Nicole!&lt;/P&gt;&lt;P&gt;I solved this problem filtering date with set analysis and creating a syn key with "group" and other fields I needed.&lt;BR /&gt;Sorry for the poor information before, but thank you so much for all your attention!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 20:07:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-with-Excel-exceptions/m-p/1627794#M733361</guid>
      <dc:creator>CharlesNaseh</dc:creator>
      <dc:date>2019-09-24T20:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Query with Excel exceptions</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Query-with-Excel-exceptions/m-p/1627799#M733362</link>
      <description>&lt;P&gt;Oh, and about the first problem, I solved using different names for each field, like this:&lt;/P&gt;&lt;P&gt;load * where not exists (filter_field, filtered_field);&lt;/P&gt;&lt;P&gt;Your help was essential!!!&lt;/P&gt;</description>
      <pubDate>Tue, 24 Sep 2019 20:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Query-with-Excel-exceptions/m-p/1627799#M733362</guid>
      <dc:creator>CharlesNaseh</dc:creator>
      <dc:date>2019-09-24T20:14:34Z</dc:date>
    </item>
  </channel>
</rss>

