Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Analytical Function: select last value that is not null
Whow....
Elegantly solved, indeed.... almost magical. Thanks a lot to everyone who suggested a solution.
MK
> How about:
>
> SELECT d,
> SUM(n) over (PARTITION BY f) status
> FROM (
> SELECT x.*,
> SUM(n) over (ORDER BY d) f
> FROM x ) v
> ORDER BY d
>
>
> I LOVE analytical functions!!!
Received on Mon May 13 2002 - 06:05:39 CDT