<?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 Check if a table is already loaded in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Check-if-a-table-is-already-loaded/m-p/340376#M125685</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi in case anybody facing the same problem. I've already found a solution. I check the output of noOfRows('table') under debug. If a table does not exist, it returns null, else it returns the number of rows in a table. So in order to check whether a table exists of not. We should use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if noOfRows('table') &amp;lt;&amp;gt;null then&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2012 06:54:18 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-05-08T06:54:18Z</dc:date>
    <item>
      <title>Check if a table is already loaded</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-a-table-is-already-loaded/m-p/340375#M125684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I would like to check if a table exist before dropping this table. I used this function &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if noOfRows('mytable')&amp;gt;0 then &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop table mytable;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; However, later i found that if a table has been created but contains no data. noOfRows function also return a number which is less or equals to zero. The scenario is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mytable:&lt;/P&gt;&lt;P&gt;load * &lt;/P&gt;&lt;P&gt;from mytable;&lt;/P&gt;&lt;P&gt;inner join &lt;/P&gt;&lt;P&gt;load * from &lt;/P&gt;&lt;P&gt;anothertable;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above scenario creates mytable and makes it empty by a inner join. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This causes my table not being dropped. Could anyone tell me if there is another way of checking the existence of a table? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 06:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-a-table-is-already-loaded/m-p/340375#M125684</guid>
      <dc:creator />
      <dc:date>2012-05-08T06:34:00Z</dc:date>
    </item>
    <item>
      <title>Check if a table is already loaded</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-a-table-is-already-loaded/m-p/340376#M125685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi in case anybody facing the same problem. I've already found a solution. I check the output of noOfRows('table') under debug. If a table does not exist, it returns null, else it returns the number of rows in a table. So in order to check whether a table exists of not. We should use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if noOfRows('table') &amp;lt;&amp;gt;null then&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 06:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-a-table-is-already-loaded/m-p/340376#M125685</guid>
      <dc:creator />
      <dc:date>2012-05-08T06:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a table is already loaded</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-a-table-is-already-loaded/m-p/340377#M125686</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! Very thoughtful of you to give everyone your solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2015 14:35:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-a-table-is-already-loaded/m-p/340377#M125686</guid>
      <dc:creator />
      <dc:date>2015-07-03T14:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Check if a table is already loaded</title>
      <link>https://community.qlik.com/t5/QlikView/Check-if-a-table-is-already-loaded/m-p/2453689#M1225705</link>
      <description>&lt;P&gt;After 12 years still it does the trick. Thank you unknown OP&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2024 13:46:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Check-if-a-table-is-already-loaded/m-p/2453689#M1225705</guid>
      <dc:creator>Arek92</dc:creator>
      <dc:date>2024-05-17T13:46:05Z</dc:date>
    </item>
  </channel>
</rss>

