pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: teknokrat@yahoo.com
To: pgsql-sql@postgresql.org
Subject: Can this be done with sql?
Date: 3 Jul 2002 11:32:17 -0700
Message-ID: <1cbae208.0207031032.7d1be1a2@posting.google.com> (raw)

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





view thread (4+ messages)  latest in thread

Message-ID: <1cbae208.0207031032.7d1be1a2@posting.google.com>
Permalink:  ../1cbae208.0207031032.7d1be1a2@posting.google.com/
Also on:    postgresql.org/message-id/1cbae208.0207031032.7d1be1a2@posting.google.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: teknokrat@yahoo.com
  Subject: Re: Can this be done with sql?
  In-Reply-To: <1cbae208.0207031032.7d1be1a2@posting.google.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox