Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • SQL Server: How to see current transactions or requests SQL Server
  • V$INSTANCE of Oracle in MYSQL MYSQL
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • tracksqltime.sql Oracle
  • UTL_FILE test program Oracle
  • Passing from Unix to PLSQL using bind variables Linux/Unix
  • Load testing on Oracle 19C RAC with HammerDB Oracle
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle
  • Is It Recommended To Apply Patch Bundles When PSU Is Available? -ID 743554.1 Oracle
  • Sort with ASCII order and Numeric Order Linux/Unix
  • note id 373303.1 Linux/Unix
  • scp with ssh2 Linux/Unix
  • My Minimum Tuning Programs Oracle
  • Updated LCK.SQL file. 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

  • Pending Distributed Transations Oracle
  • Oracle Support Metalink ID 161818.1 Oracle
  • get_vmstat_solaris Oracle
  • create user with unlimited quota Oracle
  • DBA_HIST_SQLSTAT contents Oracle
  • Wait time tuning research 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 (395)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (343)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • 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

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • 10g oem configuration Oracle
  • to see when crontab is changed. Linux/Unix
  • SQL_PLAN.sql for checking real execution plan Oracle
  • Good RAC & Standby Notes Oracle
  • Find_planinfo.sql Oracle
  • Privilege to describe the table. Oracle
  • catting.sh Linux/Unix
  • create user with unlimited quota Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme