Re: How to design
Posted by:
Bob Field
Date: June 09, 2006 09:11AM
Generally to do this you want to join the table to itself using the grouping field, and add to the join condition a value comparison, then select only rows not matching any greater values:
SELECT t1.*
FROM t1 LEFT JOIN t2 ON t1.group = t2.group AND t1.score < t2.score
WHERE t2.score IS NULL;
Subject
Written By
Posted
Re: How to design
June 09, 2006 09:11AM
Sorry, you can't reply to this topic. It has been closed.
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.