Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Help with query

Re: Help with query

From: Bruman <uv_katastrophe_at_yahoo.com>
Date: 7 Dec 2006 11:52:26 -0800
Message-ID: <1165521146.657328.325730@n67g2000cwd.googlegroups.com>

Michel Cadot wrote:>
> Here's another query which works even if the interval
> between 2 rows is not 10 minutes:
>
> select begin_time,
> last_value(end_time)
> over (order by begin_time
> range between current row
> and interval '1:59:59' hour to second following)
> end_time,
> sum(undoblks)
> over (order by begin_time
> range between current row
> and interval '1:59:59' hour to second following)
> undoblks
> from v$undostat
> order by begin_time
> /
>
> Regards
> Michel Cadot

I like it. Is there a good source on Analytic Functions other than the Oracle documentation? Some of us dunderheads have trouble following the little charts and need examples to understand what is going on. Received on Thu Dec 07 2006 - 13:52:26 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US