Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • chk_space_SID.ksh Linux/Unix
  • OPENING A STANDBY DATABASE IN READ-ONLY MODE Oracle
  • Trace a SQL session from another session using ORADEBUG Oracle
  • DB Console Mainenance. Oracle
  • find checksum of a file. Linux/Unix
  • compile_inv.sql Oracle
  • database trigger failing Oracle
  • Guide to Linux System Command Mastery Linux/Unix
  • SQL Server: How to see current transactions or requests SQL Server
  • Parallel DML Oracle
  • Restoring a user’s original password 1051962.101 Oracle
  • Configure ssh authentications for RAC Oracle
  • Giving Grant on v$DATABASE Oracle
  • Oracle 11g RAC on OEL 5 and Vmware 2 Oracle

Order by with ROWNUM

Posted on 03-Jan-2007 By Admin No Comments on Order by with ROWNUM

18:02:01 PVM@AWRTEST:-> select * from pvm1;

NO

———

100

20

40

1

2

200

24

7 rows selected.

Elapsed: 00:00:00.01

18:02:17 PVM@AWRTEST:-> select no from ( select no, row_number() over (order by no desc) r from pvm1) where r=2;

NO

———

100

1 row selected.

Elapsed: 00:00:00.02

18:02:38 PVM@AWRTEST:-> select no from ( select no, row_number() over (order by no ) r from pvm1) where r=1;

NO

———

1

1 row selected.

Elapsed: 00:00:00.01

Oracle, SQL scripts

Post navigation

Previous Post: xargs use
Next Post: Sort with ASCII order and Numeric Order

Related Posts

  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • Handling LOB data in Oracle Oracle
  • Settting up get_vmstat.sh for colletinf CPU Usage. Oracle
  • Oracle Material from OTN Oracle
  • Goldengate Tutorial Oracle
  • Creating never expiring DB user accounts in Oracle 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
  • SQL_PROFILE – I explaination Oracle
  • Locktree.sql Oracle
  • V$transaction notes for finding XID composition. Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • Generate SSH without password authentication. Linux/Unix
  • default permission on ~/.ssh/authorized_keys2 or authorized_keys Linux/Unix
  • This is from Temi Oracle
  • logminer and my_lbu Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme