Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • USE_NL and INDEX hints example Oracle
  • oracle 11g RAC on vmware Oracle
  • move_arch_files.ksh Linux/Unix
  • logminer and my_lbu Oracle
  • How to see which patches are applied. Oracle
  • UNderstand and eliminate Latch contention. Oracle
  • Alter procedure auditing Oracle
  • ORACLE_SID in sqlplus Oracle
  • Error Handling in Proc Oracle
  • Some useful Unix Commands Linux/Unix
  • Finding Oracle Patches with opatch Oracle
  • 276434.1 Modifying the VIP or VIP Hostname of a 10g or 11g Oracle Clusterware Node Oracle
  • How to choose Driver table in SQL statement Oracle
  • create PLAN_TABLE command. Oracle
  • Identical Dblink Issue… 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

  • How To Limit The Access To The Database So That Only One User Per Schema Are Connected (One Concurrent User Per Schema) Oracle
  • TRUNCATE table and disabling referential constraints. Oracle
  • Finding locked objects Oracle
  • Adding or Dropping Online Redo Log Files When Physical Standby in place Oracle
  • sid_wise_sql.sql Oracle
  • sess_server.sql 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
  • Facts about SCN and Rollback Segment Oracle
  • Session_info.ksh Linux/Unix
  • 10g RAC: Troubleshooting CRS Root.sh Problems Oracle
  • TOP-N Sql to find Nth max or Top N rows Oracle
  • V$transaction notes for finding XID composition. Oracle
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • To see mem usage and CPU usage system wide. Linux/Unix
  • executing Function from SQLPLUS prompt Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme