Re: Group-wise Maximum performance
Jon Richards wrote:
> SELECT data
> FROM d s1
> WHERE time=(SELECT MAX(s2.time)
> FROM d s2
> WHERE s1.name = s2.name);
>
> This does work but on a database with >20,000 rows it takes 1 minute to return the values
> (whereas only .06 of a second to return all the values!)
Are your time and name columns indexed? Could you show the result of
describe d;
--
felix
Subject
Written By
Posted
Re: Group-wise Maximum performance
May 03, 2005 11:48AM
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.