From: | Erik Jones <erik(at)myemma(dot)com> |
---|---|
To: | Aaron Bono <postgresql(at)aranya(dot)com> |
Cc: | Joe <dev(at)freedomcircle(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Jeremiah Elliott <geek00(at)gmail(dot)com>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: avg(interval) |
Date: | 2006-06-27 02:49:26 |
Message-ID: | 44A09CB6.8080102@myemma.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Well, the query is working ok numerically, but should the answer really
be reported as 4 days and 33 hours?
Erik
Aaron Bono wrote:
> Right, the 23 is just less than 1 day, not 23 days.
>
> The good news: your query is working!
>
> -Aaron
>
> On 6/26/06, *Joe* < dev(at)freedomcircle(dot)net
> <mailto:dev(at)freedomcircle(dot)net>> wrote:
>
> Tom Lane wrote:
> > "Jeremiah Elliott" < geek00(at)gmail(dot)com <mailto:geek00(at)gmail(dot)com>>
> writes:
> >> however if i don't average them here is what i get:
> >> "7 days 22:24:50.62311";"*2420"
> >> "9 days 22:21: 02.683393";"*2420"
> >> "23:21:35.458459";"*2420"
> >> "4 days 22:47:41.749756";"*2420"
> >> "3 days 06:05:59.456947";"*2420"
> >
> >> which should average to just over nine days -
> >
> > Uh ... how do you arrive at that conclusion? I haven't done the
> math,
> > but by eyeball an average of four-something days doesn't look
> out of
> > line for those values.
>
> It seems he's calculating (7 + 9 + 23 + 4 + 3) / 5 ...
>
> Joe
>
--
erik jones <erik(at)myemma(dot)com>
software development
emma(r)
From | Date | Subject | |
---|---|---|---|
Next Message | Joe | 2006-06-27 03:20:26 | Re: avg(interval) |
Previous Message | Michael Fuhr | 2006-06-27 01:36:22 | Re: permissions from system catalogs |