Select top three results from different catagories
I post detail at Software
nha khoa Group
I cannot seem to get this to work. I have a table full of hockey teams records that I need to get the top three teams based on points but each team of the top three has to be from a different division.
Here is an example:
Table: Teams
TEAM | POINTS | DIVISION
T#1 25 DIV#1
T#2 23 DIV#1
T#3 30 DIV#2
T#4 12 DIV#2
T#5 26 DIV#3
T#6 27 DIV#3
The result should look like this:
1. T#3
2. T#6
3. T#1
Not look like this:
1. T#3
2. T#6
3. T#5
Anybody have an idea what a select statement would look like for this?
Thanks is advance!
Subject
Views
Written By
Posted
Select top three results from different catagories
3623
November 12, 2008 11:55PM
Sorry, you can't reply to this topic. It has been closed.
This forum is currently read only. You can not log in or make any changes. This is a temporary situation.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.