Re: Complex SQL
Date: 25 Oct 2002 18:44:48 -0700
Message-ID: <130ba93a.0210251744.94c0985_at_posting.google.com>
You basically want averages. Depends on your data, something like
select c1, avg(c2) over(order by c1) from t1;
should get you what you need.
- Jusung Yang
jschneider_at_kjinteractive.com (Jim) wrote in message news:<8e6a91e3.0210250837.57983b3b_at_posting.google.com>...
> Maybe not so complex, but I don't know how to do it.
>
> My table is setup like this:
>
> Date Numeric Value
> -------------- --------------
> 01/02/2002 10
> 01/03/2002 17
> 01/04/2002 83
> ....
>
> What I'd like to do is to get the average (AVG) of
> the "Numeric Value" column at each date interval, with a
> single SQL statement. That is, an SQL statement that
> returns:
>
> 01/02/2002 10
> 01/03/2002 13.5 [(10 + 17)/2]
> 01/04/2002 55 [(10 + 17 + 83)/3]
>
> Thanks in advance for any help.
Received on Sat Oct 26 2002 - 03:44:48 CEST