<?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 table is not dropped in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167978#M39348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Order by as a qlikview script command needs to be used in resident load, however order by is also a SQL command and can be used as in the example above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 May 2010 14:24:55 GMT</pubDate>
    <dc:creator>kji</dc:creator>
    <dc:date>2010-05-28T14:24:55Z</dc:date>
    <item>
      <title>table is not dropped</title>
      <link>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167973#M39343</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 noticed that sometimes the tables get dropped when I have not given a drop table command and sometimes they are not dropped wven when I have give the drop table command.&lt;/P&gt;&lt;P&gt;Please take a look at the code below:&lt;/P&gt;&lt;P&gt;po_rc_temp:&lt;BR /&gt;LOAD "po_number" AS PO,&lt;BR /&gt; "po_oldregrate",&lt;BR /&gt; "po_newregrate",&lt;BR /&gt; "po_oldotrate",&lt;BR /&gt; "po_newotrate",&lt;BR /&gt; date(floor(po_effectivedate),'MM/DD/YYYY') as po_effectivedate,&lt;BR /&gt; "po_user";&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM "TMS_Data".dbo."po_rc";&lt;BR /&gt;&lt;BR /&gt;po_rc:&lt;BR /&gt;LOAD *,&lt;BR /&gt;date(po_effectivedate - previous(po_effectivedate), 'MM/DD/YYYY') as po_eff_prev&lt;BR /&gt;resident po_rc_temp order by PO, po_effectivedate;&lt;/P&gt;&lt;P&gt;Drop Table Timesheets;&lt;BR /&gt;Drop table po_rc_temp;&lt;/P&gt;&lt;P&gt;somehow the table po_rc_temp is not getting dropped because of which i am getting synthetic keys. i am sure i am missing something. can anyone help me please?&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 16:33:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167973#M39343</guid>
      <dc:creator />
      <dc:date>2010-05-27T16:33:55Z</dc:date>
    </item>
    <item>
      <title>table is not dropped</title>
      <link>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167974#M39344</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 THINK (think being the operative word, not tested this) that the reason is you are doing a LOAD * in the po_rc table, this means that you will be loading the same field names and therefore the load will be concatenated to po_rc_temp.&lt;/P&gt;&lt;P&gt;Try renaming your fields upon load as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;po_rc:&lt;BR /&gt;LOAD PO AS po_number&lt;BR /&gt;,po_oldregrate as oldregrate&lt;BR /&gt;etc, etc.&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;Your drop command should then work because po_rc will be a table in its own right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 16:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167974#M39344</guid>
      <dc:creator />
      <dc:date>2010-05-27T16:43:46Z</dc:date>
    </item>
    <item>
      <title>table is not dropped</title>
      <link>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167975#M39345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nigel,&lt;/P&gt;&lt;P&gt;Thanks for the reply! Tried that but did not work. Finally, started from an earlier version of the file and that worked correctly. Looks like the file/data got corrupted somehow. Yesterday, it (same file) was dropping a table on its own.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 18:58:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167975#M39345</guid>
      <dc:creator />
      <dc:date>2010-05-27T18:58:41Z</dc:date>
    </item>
    <item>
      <title>table is not dropped</title>
      <link>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167976#M39346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello you can order in SQL SELECT statement and create field po_eff_prev in first LOAD statement:&lt;/P&gt;&lt;P&gt;po_rc_temp:&lt;BR /&gt;LOAD "po_number" AS PO,&lt;BR /&gt; "po_oldregrate",&lt;BR /&gt; "po_newregrate",&lt;BR /&gt; "po_oldotrate",&lt;BR /&gt; "po_newotrate",&lt;BR /&gt; date(floor(po_effectivedate),'MM/DD/YYYY') as po_effectivedate,&lt;BR /&gt; "po_user",&lt;/P&gt;&lt;P&gt;date(po_effectivedate - previous(po_effectivedate), 'MM/DD/YYYY') as po_eff_prev&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;SQL SELECT *&lt;BR /&gt;FROM "TMS_Data".dbo."po_rc" ORDER BY "po_number", po_effectivedate;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so you don't need to drop tmpTable and you win in a time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 06:11:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167976#M39346</guid>
      <dc:creator>sparur</dc:creator>
      <dc:date>2010-05-28T06:11:40Z</dc:date>
    </item>
    <item>
      <title>table is not dropped</title>
      <link>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167977#M39347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sparur,&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;However 'order by' only works for a previously loaded table.&lt;/P&gt;&lt;P&gt;please take a look at the para from page 312 of the manual:&lt;/P&gt;&lt;P&gt;"order by is a clause used to sort the records of a resident input table&lt;BR /&gt;before they are processed by the load statement. The resident table&lt;BR /&gt;can be sorted by one or more fields in ascending or descending&lt;BR /&gt;order. The sorting is made primarily by numeric value and secondarily&lt;BR /&gt;by national ASCII value. This clause may only be used when&lt;BR /&gt;the data source is a resident table."&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 13:59:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167977#M39347</guid>
      <dc:creator />
      <dc:date>2010-05-28T13:59:36Z</dc:date>
    </item>
    <item>
      <title>table is not dropped</title>
      <link>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167978#M39348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Order by as a qlikview script command needs to be used in resident load, however order by is also a SQL command and can be used as in the example above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 14:24:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167978#M39348</guid>
      <dc:creator>kji</dc:creator>
      <dc:date>2010-05-28T14:24:55Z</dc:date>
    </item>
    <item>
      <title>table is not dropped</title>
      <link>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167979#M39349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johan,&lt;/P&gt;&lt;P&gt;I did try that (and I tried again) before using a resident load in my sql statement but it gave me sql error. that was precisely the reason I used a resident load. may be i missed something somewhere.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 15:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167979#M39349</guid>
      <dc:creator />
      <dc:date>2010-05-28T15:38:32Z</dc:date>
    </item>
    <item>
      <title>table is not dropped</title>
      <link>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167980#M39350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You are right. i must be missing something when i tried that earlier. anyway, now i am using joins to achieve something else so i need to have a resident table anyway.&lt;/P&gt;&lt;P&gt;as you can see i am relatively new.&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 May 2010 16:02:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/table-is-not-dropped/m-p/167980#M39350</guid>
      <dc:creator />
      <dc:date>2010-05-28T16:02:30Z</dc:date>
    </item>
  </channel>
</rss>

