<?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 How to get top 100 records? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-top-100-records/m-p/3030420#M910288</link>
    <description>What is the SQL command to retreive top 100 records from Allbase database?&lt;BR /&gt;&lt;BR /&gt;I noticed there is no "TOP" or "ROWCOUNT".&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Haji</description>
    <pubDate>Tue, 22 Jul 2003 18:53:39 GMT</pubDate>
    <dc:creator>Hajime Kusakabe</dc:creator>
    <dc:date>2003-07-22T18:53:39Z</dc:date>
    <item>
      <title>How to get top 100 records?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-top-100-records/m-p/3030420#M910288</link>
      <description>What is the SQL command to retreive top 100 records from Allbase database?&lt;BR /&gt;&lt;BR /&gt;I noticed there is no "TOP" or "ROWCOUNT".&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Haji</description>
      <pubDate>Tue, 22 Jul 2003 18:53:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-top-100-records/m-p/3030420#M910288</guid>
      <dc:creator>Hajime Kusakabe</dc:creator>
      <dc:date>2003-07-22T18:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top 100 records?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-top-100-records/m-p/3030421#M910289</link>
      <description>Hello,&lt;BR /&gt;Not particulary Allbase,&lt;BR /&gt;but may be something from Informix or DB2 works... &lt;A href="http://php.weblogs.com/portable_sql" target="_blank"&gt;http://php.weblogs.com/portable_sql&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Programmed found here ... &lt;A href="http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_20563735.html" target="_blank"&gt;http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_20563735.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Effective Code:&lt;BR /&gt;&lt;BR /&gt;SELECT r.employee_id, r.name, &lt;BR /&gt;     (SELECT COUNT(1) FROM employee WHERE employee_id &amp;lt;= r.employee_id) AS "RowNumber"&lt;BR /&gt;FROM employee r&lt;BR /&gt;ORDER BY r.employee_id ASC&lt;BR /&gt;&lt;BR /&gt;But this could be an expensive statement for a big table.&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;Volker&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Jul 2003 19:23:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-top-100-records/m-p/3030421#M910289</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2003-07-22T19:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top 100 records?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-top-100-records/m-p/3030422#M910290</link>
      <description>Thank you for your reply but it does not seem work.&lt;BR /&gt;I don't see "COUNT" as a SQL commond for Allbase.&lt;BR /&gt;&lt;BR /&gt;Haji</description>
      <pubDate>Tue, 22 Jul 2003 19:44:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-top-100-records/m-p/3030422#M910290</guid>
      <dc:creator>Hajime Kusakabe</dc:creator>
      <dc:date>2003-07-22T19:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top 100 records?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-top-100-records/m-p/3030423#M910291</link>
      <description>Under Oracle (I'm not sure if this is part of SQL90), there is a pseudocolumn called rownum.&lt;BR /&gt;&lt;BR /&gt;Simply select your rows in descending order and set the where clause to where rownum &amp;lt; 100.</description>
      <pubDate>Wed, 23 Jul 2003 01:26:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-top-100-records/m-p/3030423#M910291</guid>
      <dc:creator>R. Allan Hicks</dc:creator>
      <dc:date>2003-07-23T01:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get top 100 records?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-top-100-records/m-p/3030424#M910292</link>
      <description>Thank you for the reply.&lt;BR /&gt;But there is no "ROWNUM" command in AllBase either.&lt;BR /&gt;&lt;BR /&gt;Haji</description>
      <pubDate>Wed, 23 Jul 2003 12:40:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-get-top-100-records/m-p/3030424#M910292</guid>
      <dc:creator>Hajime Kusakabe</dc:creator>
      <dc:date>2003-07-23T12:40:13Z</dc:date>
    </item>
  </channel>
</rss>

