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: creating a time series table...

Re: creating a time series table...

From: Giovanni Azua <bravegag_at_hotmail.com>
Date: Tue, 14 Jan 2003 16:24:12 +0100
Message-ID: <b01a6a$jjv8e$1@ID-114658.news.dfncis.de>

> my idea of the ??? is:
> avg(amount) over (partition by Account_ID, Person_ID, Month
> order by Day
> range 3 preceding)
>
> but this doesn't work because amount in this case
> amount is not part of the outer GROUP BY clause... also
> because I don't want to generate more rows than 1 for each
> time serie column and I don't have a way to limit the ROWNUM of
> how many rows the analytic function should process, in this case should
>
> be 5 to make sure it doesn't split in max 31/5 = 6 rows per month.
>

Sorry in this case should be 3 to make sure it doesn't split in max 31/3 = 10 rows per month.

> TIA,
> Best Regards,
> Giovanni
>
>
Received on Tue Jan 14 2003 - 09:24:12 CST

Original text of this message

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