<?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 Problems with the resident function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233453#M84990</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for clarification, LOAD is not mandatory before a SELECT, because it's done implicitly by QlikView, so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Table:SELECT field1 FROM Table;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;will have the same effect that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Table:LOAD *;SELECT field1 FROM Table;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;However I always use it and suggest to do so, as I said in my previous post. Since fields are case sensitive and the ODBC drivers may not parse some of the SQL commands, it's very powerful to use LOAD in any table you pull from data source.&lt;/P&gt;&lt;P&gt;The "Select..." dialog does all the work if you click on the "Preceding LOAD" check when using the wizard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Dec 2010 15:59:34 GMT</pubDate>
    <dc:creator>Miguel_Angel_Baeyens</dc:creator>
    <dc:date>2010-12-27T15:59:34Z</dc:date>
    <item>
      <title>Problems with the resident function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233445#M84982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear QV users,&lt;/P&gt;&lt;P&gt;I wrote a script and I am using it now almost a year. Now I have some time to improve the script, so the upload can be faster. Below you find the old script;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Allocation:&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Sql SELECT&lt;/B&gt; * &lt;B&gt;from&lt;/B&gt; Jobscope.dbo.IpAlloc&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;DATE_ISSUED &amp;gt;= '20090101' AND DATE_ISSUED &amp;lt;='20101231';&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;AllocTemp:&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt; &lt;B&gt;Load&lt;/B&gt; JOB_NUMBER, DATE_ISSUED, BATCH_NUMBER, ACCOUNT, STOCK_NUMBER, QUANTITY_ISSUED, EXTENDED_TOTAL&lt;/P&gt;&lt;P&gt;&lt;B&gt;Resident&lt;/B&gt; Allocation;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Drop&lt;/B&gt; &lt;B&gt;table&lt;/B&gt; &lt;I&gt;Allocation;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like to create the following script:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;Allocation:&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Sql SELECT&lt;/B&gt; &lt;B&gt;JOB_NUMBER, DATE_ISSUED, BATCH_NUMBER, ACCOUNT, STOCK_NUMBER, QUANTITY_ISSUED, EXTENDED_TOTAL&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;from&lt;/B&gt; Jobscope.dbo.IpAlloc WHERE DATE_ISSUED &amp;gt;= '20090101' AND DATE_ISSUED &amp;lt;='20101231';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;AllocTemp:&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;B&gt;Load *&lt;/B&gt; &lt;B&gt;Resident Allocation;&lt;/B&gt; &lt;P&gt;&lt;B&gt;&lt;/B&gt;&lt;B&gt;Drop&lt;/B&gt; &lt;B&gt;table&lt;/B&gt; &lt;I&gt;Allocation;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;When I use the new script the table AllocTemp does not exist anymore?&lt;/I&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;Can someone help me with this problem [:S]&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P style="font-style: italic"&gt;With kind regards,&lt;/P&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P style="font-style: italic"&gt;Aissam&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 14:57:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233445#M84982</guid>
      <dc:creator />
      <dc:date>2010-12-27T14:57:19Z</dc:date>
    </item>
    <item>
      <title>Problems with the resident function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233446#M84983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Aren't you missing the LOAD statement at the beginning of the 'Allocation' table script?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Montal.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 15:02:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233446#M84983</guid>
      <dc:creator />
      <dc:date>2010-12-27T15:02:51Z</dc:date>
    </item>
    <item>
      <title>Problems with the resident function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233447#M84984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Montal,&lt;/P&gt;&lt;P&gt;I don't need it, because it's SQL ( I think).&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aissam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 15:10:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233447#M84984</guid>
      <dc:creator />
      <dc:date>2010-12-27T15:10:04Z</dc:date>
    </item>
    <item>
      <title>Problems with the resident function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233448#M84985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Try to run the script only with the 'Allocation' part of the script, and see if you get no errors.&lt;/P&gt;&lt;P&gt;It still feels like the problem is in the 'Allocation' table...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 15:13:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233448#M84985</guid>
      <dc:creator />
      <dc:date>2010-12-27T15:13:16Z</dc:date>
    </item>
    <item>
      <title>Problems with the resident function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233449#M84986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Montal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The allocation table works, I can see the fields defined. Attached you will find a print screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aissam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 15:25:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233449#M84986</guid>
      <dc:creator />
      <dc:date>2010-12-27T15:25:04Z</dc:date>
    </item>
    <item>
      <title>SV:Problems with the resident function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233450#M84987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chiki&lt;/P&gt;&lt;P&gt;I think that the reason you don't get a AllocTemp table is that you create it as an exact copy of the Allocation table,&lt;/P&gt;&lt;P&gt;this will by default concatenate into Allocation instead of creating a new table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;AllocTemp:&lt;BR /&gt;Load *, 1 As Dummy Resident Allocation; // add a Dummy field to distingiush AllocTemp table from Allocation table&lt;BR /&gt;Drop Field Dummy;&lt;BR /&gt;Drop Table Allocation;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 15:40:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233450#M84987</guid>
      <dc:creator>gandalfgray</dc:creator>
      <dc:date>2010-12-27T15:40:39Z</dc:date>
    </item>
    <item>
      <title>Problems with the resident function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233451#M84988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;According to the Qlikview manual a load Statment is required before an SQL statement, i never tried it without a Load. But since you say its is working, the problem maybe that the Allocation Table and the Allocation Temp table having same Field names are being automatically concatenated by QlikView. Try using a No Concatenate Statement between the two Tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 15:44:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233451#M84988</guid>
      <dc:creator>syed_muzammil</dc:creator>
      <dc:date>2010-12-27T15:44:39Z</dc:date>
    </item>
    <item>
      <title>Problems with the resident function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233452#M84989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Several things are happening here. In first place, you don't have to use the LOAD statement as QlikView does it implicitly when you load from a SQL statement, but the thing is that it's more clear and helps dbugging code and using all QlikView functions rather than raw SQL statements.&lt;/P&gt;&lt;P&gt;What it seems it's happening at the first sight is that you are loading the same table twice consecutively, first from SQL then from the already loaded table. That means both tables have the same exact number and name of fields, which results in QlikView implicitly concatenating both tables. When you concatenate one table to another, the result is always only one table.&lt;/P&gt;&lt;P&gt;So you load the table Allocation, then load from this to AllocTemp (being stored into Allocation) and then drop Allocation. Result: no records.&lt;/P&gt;&lt;P&gt;This can be avoided using NOCONCATENATE before the LOAD keyword. But if you only do this, as the fields remain named alike, you will have several unwanted synthetic keys. RESIDENT is likely working fine, and you can easily test that using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Qualify *;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;before the LOAD statement, so your code looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Allocation:Sql SELECT JOB_NUMBER, DATE_ISSUED, BATCH_NUMBER, ACCOUNT, STOCK_NUMBER, QUANTITY_ISSUED, EXTENDED_TOTAL from Jobscope.dbo.IpAlloc WHERE DATE_ISSUED &amp;gt;= '20090101' AND DATE_ISSUED &amp;lt;='20101231'; Qualify *;AllocTemp:Load * Resident Allocation;Unqualify *; Drop table Allocation;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Qualifying will return all fields prefixed with the table name (for example "AllocTemp.JOB_NUMBER").&lt;/P&gt;&lt;P&gt;If this is correct, I don't see the need of loading from a resident table here, since you can rename fields in the first table (according to my first paragraph):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Allocation:LOAD JOB_NUMBER, DATE_ISSUED, BATCH_NUMBER, ACCOUNT, STOCK_NUMBER, QUANTITY_ISSUED, EXTENDED_TOTALSql SELECT JOB_NUMBER, DATE_ISSUED, BATCH_NUMBER, ACCOUNT, STOCK_NUMBER, QUANTITY_ISSUED, EXTENDED_TOTAL from Jobscope.dbo.IpAlloc WHERE DATE_ISSUED &amp;gt;= '20090101' AND DATE_ISSUED &amp;lt;='20101231';&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;But anyway.&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 15:49:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233452#M84989</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-12-27T15:49:26Z</dc:date>
    </item>
    <item>
      <title>Problems with the resident function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233453#M84990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for clarification, LOAD is not mandatory before a SELECT, because it's done implicitly by QlikView, so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Table:SELECT field1 FROM Table;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;will have the same effect that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Table:LOAD *;SELECT field1 FROM Table;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;However I always use it and suggest to do so, as I said in my previous post. Since fields are case sensitive and the ODBC drivers may not parse some of the SQL commands, it's very powerful to use LOAD in any table you pull from data source.&lt;/P&gt;&lt;P&gt;The "Select..." dialog does all the work if you click on the "Preceding LOAD" check when using the wizard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 15:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233453#M84990</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-12-27T15:59:34Z</dc:date>
    </item>
    <item>
      <title>Problems with the resident function</title>
      <link>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233454#M84991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the NOCONCATENATE Load statement and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks very much for your helps guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aissam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Dec 2010 16:26:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Problems-with-the-resident-function/m-p/233454#M84991</guid>
      <dc:creator />
      <dc:date>2010-12-27T16:26:04Z</dc:date>
    </item>
  </channel>
</rss>

