Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • How to see which patches are applied. Oracle
  • USE_NL and INDEX hints example Oracle
  • Jai Shree Ram Linux/Unix
  • Checking SQL Server Version SQL Server
  • Pending Distributed Transations Oracle
  • SQLPLUS COPY command Precautions. Oracle
  • Oracle10g – Using SQLAccess Advisor (DBMS_ADVISOR) with the Automatic Workload Repository Oracle
  • Good Site for Oracle Internals Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • oracle 11g RAC on vmware Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • find_string_in_database.sql Oracle
  • PLSQL Table Syntax 2 Oracle
  • Finding locked objects Oracle
  • Ports used by Oracle Software 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

  • Trace a SQL session from another session using ORADEBUG Oracle
  • crtgr.sql /* For creating trigger from data dictionary */ Oracle
  • sbind.sql Find Bind variable from sql_id sqlid Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • oracle Dba site Oracle
  • TNSNAMES entries details Oracle

Leave a Reply Cancel reply

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

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Backup and Recovery Scenarios Oracle
  • PLSQL Table Syntax 1 Oracle
  • Session_info.ksh Linux/Unix
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • Find nth max and min. Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • Reclaim temp tablespace for oracle 8, 8i Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme