<?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 Can this script work with a resident table? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323444#M119193</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script below works fine when EVENTSLOG is a database table.&lt;/P&gt;&lt;P&gt;Can this code be modified to work when EVENTSLOG is a resident table? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT Count(EVENTID) AS CountOfEVENTID, EVENTSLOG_1.EVENTID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM EVENTSLOG, EVENTSLOG AS EVENTSLOG_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE (((STARTTIME)&amp;gt;=[EVENTSLOG_1.STARTTIME] And (STARTTIME)&amp;lt;[EVENTSLOG_1.ERRORTIME] And [EVENTSLOG_1.ERRORTIME] Is Not Null) AND ((USERNAME)=[EVENTSLOG_1.USERNAME]))&lt;/P&gt;&lt;P&gt;GROUP BY EVENTSLOG_1.EVENTID;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2011 12:48:49 GMT</pubDate>
    <dc:creator>m_woolf</dc:creator>
    <dc:date>2011-06-27T12:48:49Z</dc:date>
    <item>
      <title>Can this script work with a resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323444#M119193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The script below works fine when EVENTSLOG is a database table.&lt;/P&gt;&lt;P&gt;Can this code be modified to work when EVENTSLOG is a resident table? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL SELECT Count(EVENTID) AS CountOfEVENTID, EVENTSLOG_1.EVENTID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM EVENTSLOG, EVENTSLOG AS EVENTSLOG_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE (((STARTTIME)&amp;gt;=[EVENTSLOG_1.STARTTIME] And (STARTTIME)&amp;lt;[EVENTSLOG_1.ERRORTIME] And [EVENTSLOG_1.ERRORTIME] Is Not Null) AND ((USERNAME)=[EVENTSLOG_1.USERNAME]))&lt;/P&gt;&lt;P&gt;GROUP BY EVENTSLOG_1.EVENTID;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 12:48:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323444#M119193</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2011-06-27T12:48:49Z</dc:date>
    </item>
    <item>
      <title>Can this script work with a resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323445#M119194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mwoolf,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No,&amp;nbsp; SQL can only be used in QlikView scripting when connecting to a SQL database.&amp;nbsp; It is not QlikView that is using the SQL, it is sending the SQL to the database and brining back the table.&amp;nbsp; QlikView language can handle what you are trying to do, but it would need to be translated to QlikView scripting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jacob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 18:56:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323445#M119194</guid>
      <dc:creator>jdf</dc:creator>
      <dc:date>2011-06-27T18:56:16Z</dc:date>
    </item>
    <item>
      <title>Can this script work with a resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323446#M119195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jacob,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I guess my questions would be better phrased as "What changes are required to make this script work for a resident table".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried:&lt;/P&gt;&lt;P&gt;LOAD Count(EVENTID) AS CountOfEVENTID, EVENTSLOG_1.EVENTID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Resident EVENTSLOG, EVENTSLOG AS EVENTSLOG_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE (((STARTTIME)&amp;gt;=[EVENTSLOG_1.STARTTIME] And (STARTTIME)&amp;lt;[EVENTSLOG_1.ERRORTIME] And [EVENTSLOG_1.ERRORTIME] Is Not Null) AND ((USERNAME)=[EVENTSLOG_1.USERNAME]))&lt;/P&gt;&lt;P&gt;GROUP BY EVENTSLOG_1.EVENTID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QlikView says it can't find the field "EVENTSLOG_1.EVENTID"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 19:00:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323446#M119195</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2011-06-27T19:00:50Z</dc:date>
    </item>
    <item>
      <title>Can this script work with a resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323447#M119196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Can you upload your .qvw so I can work with it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 19:03:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323447#M119196</guid>
      <dc:creator>jdf</dc:creator>
      <dc:date>2011-06-27T19:03:45Z</dc:date>
    </item>
    <item>
      <title>Can this script work with a resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323448#M119197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I would have to also include the data, as the problem involves reloading. The data is confidential and quite large, so I'm afraid not.&lt;/P&gt;&lt;P&gt;Thanks for the offer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 19:09:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323448#M119197</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2011-06-27T19:09:11Z</dc:date>
    </item>
    <item>
      <title>Can this script work with a resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323449#M119198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am assuming you already have the data from the database in a resident table? in a script something like this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;event_log:&lt;/P&gt;&lt;P&gt;sql select eventid&lt;/P&gt;&lt;P&gt;from dbo.eventslog;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now just change your SQL Select to a Load and your from to a resident:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;event_summary:&lt;/P&gt;&lt;P&gt;load count(eventid) as countofeventid,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; eventid&lt;/P&gt;&lt;P&gt;resident eventslog&lt;/P&gt;&lt;P&gt;where ...&lt;/P&gt;&lt;P&gt;group by ...;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 19:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323449#M119198</guid>
      <dc:creator />
      <dc:date>2011-06-27T19:09:45Z</dc:date>
    </item>
    <item>
      <title>Can this script work with a resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323450#M119199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;EM&gt;QlikView says it can't find the field "EVENTSLOG_1.EVENTID"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unless EVENTSLOG_1.EVENTID exists as a field in the EVENTSLOG table QV wont be able to find it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like maybe you are trying to join multiple event log tables together? Could you post a bit more of your load script so we can see better what you are trying to do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 19:17:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323450#M119199</guid>
      <dc:creator />
      <dc:date>2011-06-27T19:17:55Z</dc:date>
    </item>
    <item>
      <title>Can this script work with a resident table?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323451#M119200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I have a resident table named EVENTSLOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have the same table loaded from a database, I can use the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SQL SELECT Count(EVENTID) AS CountOfEVENTID, EVENTSLOG_1.EVENTID&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM EVENTSLOG, EVENTSLOG AS EVENTSLOG_1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE (((STARTTIME)&amp;gt;=[EVENTSLOG_1.STARTTIME] And (STARTTIME)&amp;lt;[EVENTSLOG_1.ERRORTIME] And [EVENTSLOG_1.ERRORTIME] Is Not Null) AND ((USERNAME)=[EVENTSLOG_1.USERNAME]))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GROUP BY EVENTSLOG_1.EVENTID;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not the king of SQL, but I believe that this script is joining the EVENTSLOG table to a copy of itself (EVENTSLOG_1) using the Where clause to decide the conditions of the join,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your code and received the message that it couldn't find the field: event_summary.STARTTIME&amp;nbsp; (in the Where clause).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to work around this problem by having my database people create a view containingthe EVENTLOGS table instead of trying to build it myself in QlikView as a resident table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much for you replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 19:29:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-this-script-work-with-a-resident-table/m-p/323451#M119200</guid>
      <dc:creator>m_woolf</dc:creator>
      <dc:date>2011-06-27T19:29:21Z</dc:date>
    </item>
  </channel>
</rss>

