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 -> update column using specific order

update column using specific order

From: Brovreizh <brovreizh_at_yahoo.fr>
Date: 3 Mar 2004 07:51:50 -0800
Message-ID: <5b92b5ad.0403030751.bdd8df8@posting.google.com>


Hi all,

I would like to populate a given column in a table like this:

Name Salary SalaryRank
---- ------- --------

Smith 100000
John 350000
McDo 220000
Corny 110000

And finally obtain in the SalaryRank, the rank of the salary comparing to all the salary in this table like this:

Name Salary SalaryRank
---- ------- --------

Smith 100000     4
John  350000     1
McDo  220000     2
Corny 110000     3

Is it possible using an update command ? Thanks. Received on Wed Mar 03 2004 - 09:51:50 CST

Original text of this message

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