Re: date arithmetic over calender year boundaries

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Ray Jackson <rmj(at)geography(dot)otago(dot)ac(dot)nz>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: date arithmetic over calender year boundaries
Date: 2004-04-28 06:48:13
Message-ID: 20040428064813.GB6901@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Wed, Apr 28, 2004 at 16:12:34 +1200,
Ray Jackson <rmj(at)geography(dot)otago(dot)ac(dot)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.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Stijn Vanroye 2004-04-28 09:27:06 select distinct and order by
Previous Message kumar 2004-04-28 06:18:43 Re: Customised Encoding