Can this be done with sql?

From: teknokrat(at)yahoo(dot)com (teknokrat)
To: pgsql-sql(at)postgresql(dot)org
Subject: Can this be done with sql?
Date: 2002-07-03 18:32:17
Message-ID: 1cbae208.0207031032.7d1be1a2@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

In my database i have values recorded in one minute intervals. I would
like a query that can get me results for other time intervals. For
example - return maximum value in each 3 minute interval. Any ideas
how i can do this with sql? I tried writing a procedure in plsql but i
am told it does not support tuples as output. I can get the all the
one minute intervals and process them to get me three minute intervals
in my application but i would rather not do the expensive call for the
one minute intervals in the first place due to the large number of
data. any ideas?

thanks

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jie Liang 2002-07-03 19:03:27 Re: pg_restore cannot restore function
Previous Message Bruce Momjian 2002-07-03 16:28:01 Re: Localization