Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • AWR settings- MMON is not taking snapshot. Oracle
  • Restoring a user’s original password 1051962.101 Oracle
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • TABLE SIZING WITH DB_BLOCK ARCHITECTURE Reference : Metalink note : 10640.1 Oracle
  • Vivek Tuning for Row Locks. Oracle
  • ENQ: KO – FAST OBJECT CHECKPOINT tips Oracle
  • My Test Case On 21-OCT-2005 Oracle
  • Single character replacement in Unix Linux/Unix
  • executing Function from SQLPLUS prompt Oracle
  • How to sort list of files on basis of their sizes. Linux/Unix
  • good linux notes Linux/Unix
  • Import and export statements Oracle
  • Rename Tablespace Oracle
  • Insert cause enqueue locks 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

  • Kill a session dynanically using execute immediate Oracle
  • tab.sql Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • temp_use.sql diplays usage of temp ts Oracle
  • get_vmstat_linux Oracle
  • get_aix_vmstat.ksh 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
  • to see when crontab is changed. Linux/Unix
  • Oracle Connections expire_time and firewall Oracle
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • Gathering statistics with DBMS_STATS Oracle
  • checking connectivity between two servers Linux/Unix
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • fkwoindex.sql /* Find FK without Index */ Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme