Querying date interval

From: Renato De Giovanni <rdg(at)viafractal(dot)com(dot)br>
To: pgsql-sql(at)postgresql(dot)org
Subject: Querying date interval
Date: 2001-01-15 14:19:56
Message-ID: 3A63070C.F2661FED@viafractal.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi,

Is there any SQL workaround to get the right results from the select
statement bellow? Or am I doing something wrong??

create table testdate (field1 date);
insert into testdate values ('2000-09-30');
insert into testdate values ('2000-10-20');
insert into testdate values ('2000-11-25');

select * from testdate where field1 between '2000-10-01' and
'2000-11-30' ;

field1
------------
2000-09-30 <---- why is it here??
2000-10-20
2000-11-25
(3 rows)

Thanks in advance!
--
Renato
Sao Paulo - SP - Brasil
rdg(at)viafractal(dot)com(dot)br

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message J.H.M. Dassen (Ray) 2001-01-15 14:36:10 Re: Querying date interval
Previous Message Momo Mordacz 2001-01-15 13:32:35 www page - need a dbase? interested ?