From: Antti Linno <alligator@all.ee>
To: pgsql-sql@postgresql.org
Subject: Extracting data by months
Date: Thu, 3 Aug 2000 16:49:34 +0300 (EEST)
Message-ID: <Pine.LNX.4.04.10008031642260.31874-100000@all.ee> (raw)
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
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: alligator@all.ee
Subject: Re: Extracting data by months
In-Reply-To: <Pine.LNX.4.04.10008031642260.31874-100000@all.ee>
References: <Pine.LNX.4.04.10008031642260.31874-100000@all.ee>
* 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