<?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 AW:query works too long in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/query-works-too-long/m-p/223741#M76223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats a database problem. You need an db-index on customerdocumentid and customernumber, then it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings Alex:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2010 11:41:19 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-27T11:41:19Z</dc:date>
    <item>
      <title>query works too long</title>
      <link>https://community.qlik.com/t5/QlikView/query-works-too-long/m-p/223740#M76222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have table CUSTOMERDOCUMENT with fields customerdocumentid, customernumber, expirydate, documenttype&lt;/P&gt;&lt;P&gt;I want to find max(customerdocumentid) for each customernumber and i'm using query:&lt;/P&gt;&lt;P&gt;SELECT customernumber, documenttype, expirydate FROM CUSTOMERDOCUMENT WHERE customerdocumentid IN (SELECT max(customerdocumentid) from customerdocument as cd where cd.customernumber=customernumber);&lt;/P&gt;&lt;P&gt;In table is only 100000 rows but the query works an hour or even longer.&lt;/P&gt;&lt;P&gt;Is it possible to make this query works shorter? Can anybody suggest anything?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 10:32:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/query-works-too-long/m-p/223740#M76222</guid>
      <dc:creator />
      <dc:date>2010-01-27T10:32:17Z</dc:date>
    </item>
    <item>
      <title>AW:query works too long</title>
      <link>https://community.qlik.com/t5/QlikView/query-works-too-long/m-p/223741#M76223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thats a database problem. You need an db-index on customerdocumentid and customernumber, then it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings Alex:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 11:41:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/query-works-too-long/m-p/223741#M76223</guid>
      <dc:creator />
      <dc:date>2010-01-27T11:41:19Z</dc:date>
    </item>
  </channel>
</rss>

