x
login about faq Site discussion (meta-askssc)

How to Calculate Rank in oracle?

Hi,

I have a student table with columns, Student Id, Name, Group, Test Name and Marks.

Here, I would like to calculate rank based on marks. How can we do this in oracle?

Thanks in advance BI DWH BALA

more ▼

asked Nov 27 '09 at 06:28 PM in Default

BI DWH BALA gravatar image

BI DWH BALA
606 28 40 53

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first
more ▼

answered Nov 28 '09 at 02:04 AM

prodlife gravatar image

prodlife
201 1

Yes Prodflife. Thanks a lot. It solved my issue.

Nov 29 '09 at 06:21 PM BI DWH BALA
(comments are locked)
10|1200 characters needed characters left

select *, dense_rank() over (order by marks) from student

more ▼

answered Aug 18 '10 at 07:18 AM

swati gravatar image

swati
11

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments



Facebook logo Follow Ask SSC on Facebook
Find Ask SSC on Google+
linkedin logo Find us on LinkedIn

Topics:

x359
x321
x9

asked: Nov 27 '09 at 06:28 PM

Seen: 1159 times

Last Updated: Jan 05 '10 at 05:34 PM

Copyright © 2002-2012 Simple Talk Publishing. All Rights Reserved. If you have any queries, please contact the site administrators.
Ask SQL Server Central is a community service provided by Red Gate.