<?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 Re: Load data into QVD only if data present in SQL tables in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-data-into-QVD-only-if-data-present-in-SQL-tables/m-p/1567904#M3818</link>
    <description>&lt;P&gt;Try something like this:&lt;/P&gt;&lt;PRE&gt;Data:
SQL SELECT * FROM TABLE;

If NoOfRows('Data') &amp;gt; 0 Then
  Store Data into Data.Qvd;
End If
Drop table Data;&lt;/PRE&gt;</description>
    <pubDate>Thu, 11 Apr 2019 00:05:04 GMT</pubDate>
    <dc:creator>fosuzuki</dc:creator>
    <dc:date>2019-04-11T00:05:04Z</dc:date>
    <item>
      <title>Load data into QVD only if data present in SQL tables</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-data-into-QVD-only-if-data-present-in-SQL-tables/m-p/1567473#M3815</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can we have a solution at script level for "loading data into QVDs only if there is data in SQL tables".&lt;/P&gt;&lt;P&gt;SO, when a run happens and unfortunately the data in SQL table for some reason has no values, then the QVDs should remain unchanged with old records.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 09:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-data-into-QVD-only-if-data-present-in-SQL-tables/m-p/1567473#M3815</guid>
      <dc:creator>jobsonkjoseph</dc:creator>
      <dc:date>2019-04-10T09:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: Load data into QVD only if data present in SQL tables</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-data-into-QVD-only-if-data-present-in-SQL-tables/m-p/1567904#M3818</link>
      <description>&lt;P&gt;Try something like this:&lt;/P&gt;&lt;PRE&gt;Data:
SQL SELECT * FROM TABLE;

If NoOfRows('Data') &amp;gt; 0 Then
  Store Data into Data.Qvd;
End If
Drop table Data;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Apr 2019 00:05:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-data-into-QVD-only-if-data-present-in-SQL-tables/m-p/1567904#M3818</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2019-04-11T00:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Load data into QVD only if data present in SQL tables</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-data-into-QVD-only-if-data-present-in-SQL-tables/m-p/1568567#M3823</link>
      <description>&lt;P&gt;Hi Fosuzuki,&lt;/P&gt;&lt;P&gt;I've made some changes and used the following;&lt;/P&gt;&lt;P&gt;&amp;lt;table_name&amp;gt;:&lt;BR /&gt;LOAD *&lt;BR /&gt;SELECT * from &amp;lt;table&amp;gt;;&lt;BR /&gt;LET v&amp;lt;tablename&amp;gt;rows=NoOfRows('&amp;lt;table_name'&amp;gt;);&lt;BR /&gt;if $(v&amp;lt;tablename&amp;gt;rows)&amp;gt;0 then&lt;BR /&gt;STORE &amp;lt;table_name&amp;gt; into [lib://.../&amp;lt;table_name&amp;gt;.qvd](qvd);&lt;BR /&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Apr 2019 06:34:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Load-data-into-QVD-only-if-data-present-in-SQL-tables/m-p/1568567#M3823</guid>
      <dc:creator>jobsonkjoseph</dc:creator>
      <dc:date>2019-04-12T06:34:45Z</dc:date>
    </item>
  </channel>
</rss>

