pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Ray Jackson <rmj@geography.otago.ac.nz>
Cc: pgsql-sql@postgresql.org
Subject: Re: date arithmetic over calender year boundaries
Date: Wed, 28 Apr 2004 01:48:13 -0500
Message-ID: <20040428064813.GB6901@wolff.to> (raw)
In-Reply-To: <1083125554.408f2f328abed@webmail.geography.otago.ac.nz>
References: <1083125554.408f2f328abed@webmail.geography.otago.ac.nz>

On Wed, Apr 28, 2004 at 16:12:34 +1200,
  Ray Jackson <rmj@geography.otago.ac.nz> wrote:
> Hi,
> 
> The following Postgres 7.1 query extracts aggregated data for an
> arbitrary period within each year for sites in a table containing
> 30 years of temperature data.

It isn't completely clear what you want to do, but you might be able to
use date_part in a where clause to limit the data used for each year
if the range within each year is the same.



view thread (2+ messages)

Message-ID: <20040428064813.GB6901@wolff.to>
Permalink:  ../20040428064813.GB6901@wolff.to/
Also on:    postgresql.org/message-id/20040428064813.GB6901@wolff.to

 · 

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: bruno@wolff.to, rmj@geography.otago.ac.nz
  Subject: Re: date arithmetic over calender year boundaries
  In-Reply-To: <20040428064813.GB6901@wolff.to>

* 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