From: Birgit Jansen <birgit@eCoNeed.com>
To: pgsql-sql@postgresql.org
Subject: searching for dates
Date: Wed, 04 Apr 2001 20:27:01 +0100
Message-ID: <3ACB7584.F46EAD37@eCoNeed.com> (raw)
I am trying to select from a table all rows that have a date befor
1/1/2001 or after some date
I am not sure how to do it.
I try
select date_part('year', start_date) from sometable;
and that works but how do I get it to only show me the years between
1990 and 2001 or some
othere set of dates.
I would realy like to be able to just have a function to tell me if a
date in my datebase is
befor or after a date?
Thanks for any help.
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: birgit@eCoNeed.com
Subject: Re: searching for dates
In-Reply-To: <3ACB7584.F46EAD37@eCoNeed.com>
References: <3ACB7584.F46EAD37@eCoNeed.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