Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • SQL_PROFILE – I explaination Oracle
  • How do I get Oracle to automatically start when my server boots up? Oracle
  • Transfer SQL Profiles from One database to other database. Oracle
  • Oracle Identifiers Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • How to stop OCSSD Daemon Oracle
  • Committing distributed transaction using commit force Oracle
  • copying/removing directory with all its subdirectory Linux/Unix
  • create database link syntax Oracle
  • metalink all dynamic view reference notes. Oracle
  • sess_server.sql Oracle
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • ORA-00064: object is too large to allocate on this O/S during startup Oracle
  • V$transaction notes for finding XID composition. Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle

Rownum with Order by

Posted on 31-Mar-2006 By Admin No Comments on Rownum with Order by

Above version 8.0, you can select rows for specified range.

select *

from ( select a.*, rownum rnum

from ( YOUR_QUERY_GOES_HERE — including the order by ) a

where rownum <= MAX_ROWS )
where rnum >= MIN_ROWS

/

Oracle, SQL scripts

Post navigation

Previous Post: tblwopk.sql tablewopk.sql
Next Post: TRUNCATE table and disabling referential constraints.

Related Posts

  • ORA-01220 Oracle
  • Updated LCK.SQL file. Oracle
  • sesswait.sql Oracle
  • Renaming Oracle Instance Name Oracle
  • Create type and Grant on it. Oracle
  • DBMS_STATS Metalinks Notes Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • oracle fast start failover best practice Oracle
  • Proc code Oracle
  • exp syntax in oracle 10g Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • refre.sql Oracle
  • online_bkup.sql Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • purge_trc.sh Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme