<?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 using where exists() on sql load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-where-exists-on-sql-load/m-p/841337#M659296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a small problem with "where exists" and a sql load and did not find existing solutions while searching the community. Where existst works fine with qvd containers or resident loads, but seems not to work with external sql sources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my goal is to limit a load from a qvd container and then limit the load form a sql database by a field from the previous qvd load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customers:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;CU_ID,&lt;/P&gt;&lt;P&gt;firstname,&lt;/P&gt;&lt;P&gt;lastname,&lt;/P&gt;&lt;P&gt;company,&lt;/P&gt;&lt;P&gt;areacode,&lt;/P&gt;&lt;P&gt;createdate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vQVDstore)customers.qvd&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;where createdate&amp;gt;=20100101&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDERS:&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM DB."customer_orders"&lt;/P&gt;&lt;P&gt;where exists (CU_ID)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All i gt is an error. where exist works with other loads and SQL supports where exists like in this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM suppliers&lt;/P&gt;&lt;P&gt;WHERE EXISTS (SELECT *&lt;/P&gt;&lt;P&gt;&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; FROM orders&lt;/P&gt;&lt;P&gt;&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; WHERE suppliers.supplier_id = orders.supplier_id);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will appreciate any help or suggestions, thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2015 17:03:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-15T17:03:42Z</dc:date>
    <item>
      <title>using where exists() on sql load</title>
      <link>https://community.qlik.com/t5/QlikView/using-where-exists-on-sql-load/m-p/841337#M659296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i have a small problem with "where exists" and a sql load and did not find existing solutions while searching the community. Where existst works fine with qvd containers or resident loads, but seems not to work with external sql sources.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my goal is to limit a load from a qvd container and then limit the load form a sql database by a field from the previous qvd load.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;customers:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;CU_ID,&lt;/P&gt;&lt;P&gt;firstname,&lt;/P&gt;&lt;P&gt;lastname,&lt;/P&gt;&lt;P&gt;company,&lt;/P&gt;&lt;P&gt;areacode,&lt;/P&gt;&lt;P&gt;createdate&lt;/P&gt;&lt;P&gt;FROM&lt;/P&gt;&lt;P&gt;$(vQVDstore)customers.qvd&lt;/P&gt;&lt;P&gt;(qvd)&lt;/P&gt;&lt;P&gt;where createdate&amp;gt;=20100101&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDERS:&lt;/P&gt;&lt;P&gt;SQL SELECT * FROM DB."customer_orders"&lt;/P&gt;&lt;P&gt;where exists (CU_ID)&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All i gt is an error. where exist works with other loads and SQL supports where exists like in this example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM suppliers&lt;/P&gt;&lt;P&gt;WHERE EXISTS (SELECT *&lt;/P&gt;&lt;P&gt;&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; FROM orders&lt;/P&gt;&lt;P&gt;&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; WHERE suppliers.supplier_id = orders.supplier_id);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will appreciate any help or suggestions, thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 17:03:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-where-exists-on-sql-load/m-p/841337#M659296</guid>
      <dc:creator />
      <dc:date>2015-04-15T17:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: using where exists() on sql load</title>
      <link>https://community.qlik.com/t5/QlikView/using-where-exists-on-sql-load/m-p/841338#M659298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where exists (select * from ......) is a valid sql syntax (subquery)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where exists (CU_ID) isn't a valid sql syntax&lt;/P&gt;&lt;P&gt;you are making a mix between sql syntax and qlikview syntax trying to ask to the database server to check&amp;nbsp; for a valid CU_ID (field of a QlikView in memory db)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it could be&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;ORDERS:&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;load * where &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;where exists (CU_ID);&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM&gt;SQL SELECT * FROM DB."customer_orders"&lt;/EM&gt;&lt;SPAN style="line-height: 1.5em;"&gt;&lt;EM&gt;;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the SQL ....... read all the table from the dbms&lt;/P&gt;&lt;P&gt;the load filter CU_ID in QlikView&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2015 18:20:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-where-exists-on-sql-load/m-p/841338#M659298</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-15T18:20:55Z</dc:date>
    </item>
    <item>
      <title>Re: using where exists() on sql load</title>
      <link>https://community.qlik.com/t5/QlikView/using-where-exists-on-sql-load/m-p/841339#M659299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have a solution for an incremental load situation, where we would like to avoid loading the entire table and then filtering?&amp;nbsp;&amp;nbsp; Specifically, after a load of a qvd that contains order numbers, only select those rows from the database using the order numbers from the qvd.&amp;nbsp; In this situation there is no other way to identify the records in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any ideas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 00:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-where-exists-on-sql-load/m-p/841339#M659299</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-17T00:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: using where exists() on sql load</title>
      <link>https://community.qlik.com/t5/QlikView/using-where-exists-on-sql-load/m-p/841340#M659302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;usually there is a timestamp, date, a field (createdate?) to identify changed record from last qlikview reload&lt;/P&gt;&lt;P&gt;in QlikView help there is a "using qvd file for incremental load" with 4 different examples&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 16:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-where-exists-on-sql-load/m-p/841340#M659302</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2015-04-17T16:05:58Z</dc:date>
    </item>
  </channel>
</rss>

