| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: selecting a column according to a minimum - Correction
On Mon, 18 Oct 2004 08:49:31 -0500, Turkbear wrote:
> Turkbear <john.g_at_dot.spamfree.com> wrote: >
> No it won't I now realize..It will return all i and, for each i, the Min(j) - the OP wants only those i that have as j the > min(j). > value. > > Sorry...
Something like
select i
from (select i
, j
, min(j) over (order by i
rows between unbounded preceding
and unbounded following) min_j
from T
where [condition])
![]() |
![]() |