Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • check_copy_progress.sh Linux/Unix
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • Finding locked objects Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • How to find who is using which Rollback segment and how many rows or blocks in that rollback segments, Oracle
  • age_alert.ksh aging out alert.log Linux/Unix
  • How to analyze statspack or AWR report. Oracle
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • good linux notes Linux/Unix
  • MYSQL for Oracle DBA MYSQL
  • Complete Git Tutorial for Beginners GIT
  • Changing Instance Name ( No DB_NAME) Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • online_bkup.sql Oracle
  • Display the top 5 salaries for each department using single SQL 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

  • temp_use.sql diplays usage of temp ts Oracle
  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • pvmehta.com SQL scripts
    Find which sessions is accessing object that prevent your session to have exclusive locks in Oracle Oracle
  • Changing the Global Database Name Oracle
  • v$event_name Oracle
  • perf_today.sql Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (400)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (18)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (348)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Running PDB on single node in RAC09-Apr-2026
  • find_arc.sql09-Apr-2026
  • pvm_pre_change.sql08-Apr-2026
  • find_encr_wallet.sql08-Apr-2026
  • find_pdbs.sql08-Apr-2026
  • Creating a Container Database using dbaascli08-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • create trigger syntax Oracle
  • When error comes for temporary tablespace with version <= 9i Oracle
  • Locktree.sql Oracle
  • DETERMINING WHICH INSTANCE OWNS WHICH SHARED MEMORY & SEMAPHORE SEGMENTS Oracle
  • How to find Unix server conguraiton including Server Model number and underlying disk sub-system ( On Solaris) Linux/Unix
  • Jai Shree Ram Oracle
  • create database link syntax Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme