Extracting data by months

From: Antti Linno <alligator(at)all(dot)ee>
To: pgsql-sql(at)postgresql(dot)org
Subject: Extracting data by months
Date: 2000-08-03 13:49:34
Message-ID: Pine.LNX.4.04.10008031642260.31874-100000@all.ee
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Lo.

I'm in dire need of knowledge, how to extract data by month. Monthday
and year arent' important, those I can't give from perl script, but what
I do give to postgres are the numbers of the months. Date field is in
timestamp. I thought about date_trunc, but I can't think of, how to get
data with it. In script will be 12 queries, for each month, to get the
news from that month.
Btw, is there somewhere a manual about date_trunc, the docs that come with
RH6.1 distribution are somewhat short and lacking explanation of
date_trunc.
Antti

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2000-08-03 15:05:09 Re: What is happening?
Previous Message The Hermit Hacker 2000-08-03 11:41:26 Re: What is happening?