<?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: SQL Script - Number of Records, Load 1 - N1, N1-N2, N2-Last Record in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SQL-Script-Number-of-Records-Load-1-N1-N1-N2-N2-Last-Record/m-p/328509#M120930</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will it automatically select the last record and get the rowno &lt;/P&gt;&lt;P&gt;OR go through all the records, get the rowno and store it in No Field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2011 01:50:28 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-10-12T01:50:28Z</dc:date>
    <item>
      <title>SQL Script - Number of Records, Load 1 - N1, N1-N2, N2-Last Record</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Script-Number-of-Records-Load-1-N1-N1-N2-N2-Last-Record/m-p/328507#M120928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help, supposed I want to load all records from one table and i don't know how many records are present.&lt;/P&gt;&lt;P&gt;How can I do the scripting for the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Identify the number of records/rows in the table and use this value to select the records - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Supposed I have three millions rows, what I wanted to do is to divide the loading into six load as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3M / 6 = 500,000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st Load :&amp;nbsp;&amp;nbsp; Select Records from 1 - 500,000&lt;/P&gt;&lt;P&gt;2nd Load :&amp;nbsp; Select Records from 500,001 - 1,000,000&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;6th Load : Select Records from 2,501,000 - TILL THE LAST RECORD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script above will not be loaded one after the other, I will load this all at the same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. Marson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 01:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Script-Number-of-Records-Load-1-N1-N1-N2-N2-Last-Record/m-p/328507#M120928</guid>
      <dc:creator />
      <dc:date>2011-10-12T01:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Script - Number of Records, Load 1 - N1, N1-N2, N2-Last Record</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Script-Number-of-Records-Load-1-N1-N1-N2-N2-Last-Record/m-p/328508#M120929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To identify number of records/rows need to use RowNo() function.&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;[tblName]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;RowNo() AS [No],&lt;/P&gt;&lt;P&gt;F1,&lt;/P&gt;&lt;P&gt;F2,&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sokkorn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 01:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Script-Number-of-Records-Load-1-N1-N1-N2-N2-Last-Record/m-p/328508#M120929</guid>
      <dc:creator>Sokkorn</dc:creator>
      <dc:date>2011-10-12T01:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Script - Number of Records, Load 1 - N1, N1-N2, N2-Last Record</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Script-Number-of-Records-Load-1-N1-N1-N2-N2-Last-Record/m-p/328509#M120930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will it automatically select the last record and get the rowno &lt;/P&gt;&lt;P&gt;OR go through all the records, get the rowno and store it in No Field?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 01:50:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Script-Number-of-Records-Load-1-N1-N1-N2-N2-Last-Record/m-p/328509#M120930</guid>
      <dc:creator />
      <dc:date>2011-10-12T01:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Script - Number of Records, Load 1 - N1, N1-N2, N2-Last Record</title>
      <link>https://community.qlik.com/t5/QlikView/SQL-Script-Number-of-Records-Load-1-N1-N1-N2-N2-Last-Record/m-p/328510#M120931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to get the total no of records u can use function&lt;STRONG&gt; noofRecords(Fieldname).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 06:17:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SQL-Script-Number-of-Records-Load-1-N1-N1-N2-N2-Last-Record/m-p/328510#M120931</guid>
      <dc:creator />
      <dc:date>2011-10-12T06:17:43Z</dc:date>
    </item>
  </channel>
</rss>

