Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: sql

Re: sql

From: Tino Korth <newsgroup_at_tk79.de>
Date: Tue, 24 Sep 2002 11:12:01 +0200
Message-ID: <ampa8m$3tp$2@nntp-m01.news.aol.com>


Hello,

abhishek schrieb:
> how to write sql querry to
> 1. show the second maximum value of a column.

I think that will work ...

SELECT * from (SELECT * from MyTable ORDER by RowName) WHERE ROWNUM=2

Greetings from Rostock, Germany!

Tino

-- 
Tino Korth                               Registered Linux User #286417
www.tinokorth.de - ICQ 10771191                  http://counter.li.org
Received on Tue Sep 24 2002 - 04:12:01 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US