Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Good Site for Oracle Internals Oracle
  • catall.sh Linux/Unix
  • Kill a session dynanically using execute immediate Oracle
  • Jai Shree Ram Oracle
  • Goog notes on X$ tables Oracle
  • move_arch_files.ksh Linux/Unix
  • sesswait.sql Oracle
  • Changing the Global Database Name Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • find checksum of a file. Linux/Unix
  • Getting started with notebook Python/PySpark
  • Wait time tuning research Oracle
  • Wait Based Tuning Step by step with SQL statement Oracle
  • perf_today.sql Oracle
  • Drop all SPM baselines for SQL handle 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

  • executing Function from SQLPLUS prompt Oracle
  • sqlnet.ora paramters Oracle
  • find_string_in_database.sql Oracle
  • Optimizer SORT Operations Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • DBMS_PROFILER for tuning PLSQL programs. 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
  • Good notes for shared pool Oracle
  • Configure ssh authentications for RAC Oracle
  • AWR license Oracle
  • Global Unique Identifier Generation in Oracle 9.2 SYS_GUID() Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • proper cpu stats Linux/Unix
  • CPU speed on Linux Linux/Unix

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme