Re: SQL Question: Averages of intervals. - Mailing list pgsql-novice

From Daniel Staal
Subject Re: SQL Question: Averages of intervals.
Date
Msg-id 20235.152.121.16.49.1232997500.squirrel@www.magehandbook.com
Whole thread Raw
In response to SQL Question: Averages of intervals.  ("Daniel Staal" <DStaal@usa.net>)
List pgsql-novice
On Sat, January 24, 2009 8:05 pm, Jasen Betts wrote:

> 10 minutes is 600 seconds
>
> SELECT AVG("IOW"),AVG("SYS"),AVG("USR"),MIN("Time"),"MachineName"
>   FROM "LoadTable"
>   WHERE "Date"='today'::date
>   GROUP BY  FLOOR( EXTRACT(EPOCH FROM "Time") / 600 ),"MachineName";

This worked perfectly.  Thank you.

Daniel T. Staal



pgsql-novice by date:

Previous
From: Guido Barosio
Date:
Subject: Re: postgres.exe 100% CPU but no I/O
Next
From: "Lukas"
Date:
Subject: IN vs =