<?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: Loading oracle table data into multiple qvd's in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Loading-oracle-table-data-into-multiple-qvd-s/m-p/1919417#M1218489</link>
    <description>&lt;P&gt;The "Data" used in my example was meant to illustrate the concept. I meant for you to modify the script to use your own data and fields.&amp;nbsp; For example, replace the Load with a SQL select.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2022 14:29:49 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2022-04-18T14:29:49Z</dc:date>
    <item>
      <title>Loading oracle table data into multiple qvd's</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-oracle-table-data-into-multiple-qvd-s/m-p/1918191#M1218427</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;We have 26 million records in single oracle table and we want to divide and store that data into multiple qvd's based on row count.&lt;/P&gt;
&lt;P&gt;Ex. row number 1 to 1000000 into QVD1 then&amp;nbsp;1000001 to 2000000 into QVD2 and so on.&lt;/P&gt;
&lt;P&gt;any suggestions would be helpful if you have gone through same scenario.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/62820"&gt;@qlikview&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 17:23:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-oracle-table-data-into-multiple-qvd-s/m-p/1918191#M1218427</guid>
      <dc:creator>vijetas42</dc:creator>
      <dc:date>2022-04-13T17:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Loading oracle table data into multiple qvd's</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-oracle-table-data-into-multiple-qvd-s/m-p/1918275#M1218428</link>
      <description>&lt;P&gt;Is that division by physical row number or something to do with an ID field?&lt;/P&gt;
&lt;P&gt;If breaking up by physical row num, something like this. Instead of the sample Load to create the Data table, use your SQL statement like:&lt;/P&gt;
&lt;P&gt;SQL Select * From db.mytable;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;FONT face="courier new,courier"&gt;Data:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;LOAD&lt;/SPAN&gt; &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; RecNo&lt;/SPAN&gt;() &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Id&lt;/SPAN&gt;,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; rand&lt;/SPAN&gt;() &lt;SPAN class="s1"&gt;as&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;Value&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;AutoGenerate&lt;/SPAN&gt; 8000&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Set&lt;/SPAN&gt; vSize = 1000;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; For&lt;/SPAN&gt; idx = 0 &lt;SPAN class="s1"&gt;to&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;Ceil&lt;/SPAN&gt;(&lt;SPAN class="s1"&gt;NoOfRows&lt;/SPAN&gt;('Data') / &lt;SPAN class="s2"&gt;vSize&lt;/SPAN&gt;) - 1;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; Take:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; NoConcatenate&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;First&lt;/SPAN&gt; &lt;SPAN class="s2"&gt;vSize&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; Load&lt;/SPAN&gt; *&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; Resident&lt;/SPAN&gt; Data&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; Where&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;RecNo&lt;/SPAN&gt;() &amp;gt; &lt;SPAN class="s3"&gt;&lt;I&gt;$(idx)&lt;/I&gt;&lt;/SPAN&gt; * &lt;SPAN class="s3"&gt;&lt;I&gt;$(vSize)&lt;/I&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; Store&lt;/SPAN&gt; Take &lt;SPAN class="s1"&gt;into&lt;/SPAN&gt; Take_&lt;SPAN class="s3"&gt;&lt;I&gt;$(idx)&lt;/I&gt;&lt;/SPAN&gt;.qvd (&lt;SPAN class="s1"&gt;qvd&lt;/SPAN&gt;);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;&amp;nbsp; Drop&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;Table&lt;/SPAN&gt; Take;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Next&lt;/SPAN&gt; idx;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN class="s1"&gt;Drop&lt;/SPAN&gt; &lt;SPAN class="s1"&gt;Table&lt;/SPAN&gt; Data; &lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="p1"&gt;&lt;SPAN class="Apple-converted-space"&gt;-Rob&lt;BR /&gt;&lt;A href="http://www.easyqlik.com" target="_blank"&gt;http://www.easyqlik.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://masterssummit.com" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://qlikviewcookbook.com" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 21:45:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-oracle-table-data-into-multiple-qvd-s/m-p/1918275#M1218428</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-04-13T21:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Loading oracle table data into multiple qvd's</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-oracle-table-data-into-multiple-qvd-s/m-p/1919253#M1218467</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;/P&gt;
&lt;P&gt;By using above code i just see ID and value is geting stored into qvd. where I need to store fields and their respective data from db table into different qvds&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 08:41:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-oracle-table-data-into-multiple-qvd-s/m-p/1919253#M1218467</guid>
      <dc:creator>vijetas42</dc:creator>
      <dc:date>2022-04-18T08:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Loading oracle table data into multiple qvd's</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-oracle-table-data-into-multiple-qvd-s/m-p/1919417#M1218489</link>
      <description>&lt;P&gt;The "Data" used in my example was meant to illustrate the concept. I meant for you to modify the script to use your own data and fields.&amp;nbsp; For example, replace the Load with a SQL select.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 14:29:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-oracle-table-data-into-multiple-qvd-s/m-p/1919417#M1218489</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-04-18T14:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Loading oracle table data into multiple qvd's</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-oracle-table-data-into-multiple-qvd-s/m-p/1919423#M1218490</link>
      <description>&lt;P&gt;I am trying like this,&lt;/P&gt;
&lt;P&gt;Data:&lt;BR /&gt;SQL select &lt;BR /&gt;RecNo() as Id,&lt;BR /&gt;USER_ID,&lt;BR /&gt;ACC_NBR&lt;BR /&gt;From Tab1;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Set vSize = 1000000;&lt;BR /&gt;For idx = 0 to Ceil(NoOfRows('Data') / vSize) - 1;&lt;BR /&gt;Take:&lt;BR /&gt;NoConcatenate First vSize&lt;BR /&gt;Load *&lt;BR /&gt;Resident Data&lt;BR /&gt;Where RecNo() &amp;gt; $(idx) * $(vSize)&lt;BR /&gt;;&lt;BR /&gt;Store Take into [$(zGlobalQVD_Location)\Take_$(idx).qvd] (qvd);&lt;BR /&gt;Drop Table Take;&lt;BR /&gt;Next idx;&lt;BR /&gt;Drop Table Data;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but, seems recno we can not use with sql script.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 14:47:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-oracle-table-data-into-multiple-qvd-s/m-p/1919423#M1218490</guid>
      <dc:creator>vijetas42</dc:creator>
      <dc:date>2022-04-18T14:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Loading oracle table data into multiple qvd's</title>
      <link>https://community.qlik.com/t5/QlikView/Loading-oracle-table-data-into-multiple-qvd-s/m-p/1919428#M1218491</link>
      <description>&lt;P&gt;RecNo() is a Qlik function. You can use it to add the field in a preceding load like this:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;Data:&lt;BR /&gt;LOAD *,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;RecNo() as Id&lt;BR /&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;SQL select&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;USER_ID,&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;ACC_NBR&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;From Tab1;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;-Rob&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 14:53:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Loading-oracle-table-data-into-multiple-qvd-s/m-p/1919428#M1218491</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2022-04-18T14:53:20Z</dc:date>
    </item>
  </channel>
</rss>

