<?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: Partial load using SQL Select and Where Not Exists in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649494#M669996</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info everyone, but I'm not seeing the answer quite yet.&amp;nbsp; Maybe if I add a "template" version of my code, that will help better explain my goal/issue.&amp;nbsp; Hope this helps. Thanks.&lt;/P&gt;&lt;P&gt;=====================================&lt;/P&gt;&lt;P&gt;// this will execute upon a "normal/full" reload&lt;/P&gt;&lt;P&gt;// this will be ignored upon my partial reload later&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyExistingQVTable:&lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp; ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp; SomeField &lt;/P&gt;&lt;P&gt;&amp;nbsp; from SomeTable&amp;nbsp;&amp;nbsp;&amp;nbsp; //a table from sql server&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// I expected this to execute upon a partial reload and add applicable rows to my MyExistingQVTable table&lt;/P&gt;&lt;P&gt;//(applicable rows being those with IDs not already found in my MyExistingQVTable table&lt;/P&gt;&lt;P&gt;// but it doesn't like my syntax of my Where Not Exists clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add Only&lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID as ID_New&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; SomeField&lt;/P&gt;&lt;P&gt;&amp;nbsp; from SomeTable&amp;nbsp;&amp;nbsp;&amp;nbsp; //a table from sql server&lt;/P&gt;&lt;P&gt;&amp;nbsp; Where not Exists (ID_New, ID)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Field ProductID_New;&lt;/P&gt;&lt;P&gt;=====================================&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Oct 2014 16:14:59 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-10-02T16:14:59Z</dc:date>
    <item>
      <title>Partial load using SQL Select and Where Not Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649490#M669992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I can't seem to figure out where I am going wrong with regards to writing a partial load statement, using a SQL Select from a SQL Server database, with a Where Not Exists clause.&amp;nbsp; Can anyone provide a good example?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 12:52:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649490#M669992</guid>
      <dc:creator />
      <dc:date>2014-10-02T12:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Partial load using SQL Select and Where Not Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649491#M669993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure, but I think there isn't anything what could be compared with exists because it will be only these sql-statement executed. Maybe you could set those load-statement which created the exists-matchingfield in the partial load, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 15:07:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649491#M669993</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-10-02T15:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Partial load using SQL Select and Where Not Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649492#M669994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please share the sample code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 15:11:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649492#M669994</guid>
      <dc:creator />
      <dc:date>2014-10-02T15:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Partial load using SQL Select and Where Not Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649493#M669995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just a thought :&lt;/P&gt;&lt;P&gt;If the field you are using in your exists statement does not hold unique values, then only the first encountered value will be returned. Thus you will not get the desired result.&lt;/P&gt;&lt;P&gt;See here for more details : &lt;A href="https://community.qlik.com/docs/DOC-7020"&gt;The exists issue&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 15:12:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649493#M669995</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-10-02T15:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Partial load using SQL Select and Where Not Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649494#M669996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the info everyone, but I'm not seeing the answer quite yet.&amp;nbsp; Maybe if I add a "template" version of my code, that will help better explain my goal/issue.&amp;nbsp; Hope this helps. Thanks.&lt;/P&gt;&lt;P&gt;=====================================&lt;/P&gt;&lt;P&gt;// this will execute upon a "normal/full" reload&lt;/P&gt;&lt;P&gt;// this will be ignored upon my partial reload later&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MyExistingQVTable:&lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp; ID, &lt;/P&gt;&lt;P&gt;&amp;nbsp; SomeField &lt;/P&gt;&lt;P&gt;&amp;nbsp; from SomeTable&amp;nbsp;&amp;nbsp;&amp;nbsp; //a table from sql server&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// I expected this to execute upon a partial reload and add applicable rows to my MyExistingQVTable table&lt;/P&gt;&lt;P&gt;//(applicable rows being those with IDs not already found in my MyExistingQVTable table&lt;/P&gt;&lt;P&gt;// but it doesn't like my syntax of my Where Not Exists clause&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add Only&lt;/P&gt;&lt;P&gt;&amp;nbsp; SQL SELECT &lt;/P&gt;&lt;P&gt;&amp;nbsp; ID,&lt;/P&gt;&lt;P&gt;&amp;nbsp; ID as ID_New&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; SomeField&lt;/P&gt;&lt;P&gt;&amp;nbsp; from SomeTable&amp;nbsp;&amp;nbsp;&amp;nbsp; //a table from sql server&lt;/P&gt;&lt;P&gt;&amp;nbsp; Where not Exists (ID_New, ID)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DROP Field ProductID_New;&lt;/P&gt;&lt;P&gt;=====================================&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 16:14:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649494#M669996</guid>
      <dc:creator />
      <dc:date>2014-10-02T16:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Partial load using SQL Select and Where Not Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649495#M669997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think that will work as not exists is not a SQL function, it is a QV function.&lt;/P&gt;&lt;P&gt;try a preceeding load :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;load&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Where not Exists (ID_New, ID);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt; SQL SELECT&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; ID,&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; ID as ID_New &lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; SomeField&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f6f6f6;"&gt;&amp;nbsp; from SomeTable&amp;nbsp;&amp;nbsp;&amp;nbsp; //a table from sql server&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 17:08:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649495#M669997</guid>
      <dc:creator>giakoum</dc:creator>
      <dc:date>2014-10-02T17:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Partial load using SQL Select and Where Not Exists</title>
      <link>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649496#M669998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 19:24:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Partial-load-using-SQL-Select-and-Where-Not-Exists/m-p/649496#M669998</guid>
      <dc:creator />
      <dc:date>2014-10-07T19:24:51Z</dc:date>
    </item>
  </channel>
</rss>

