Querying date interval - Mailing list pgsql-sql

From Renato De Giovanni
Subject Querying date interval
Date
Msg-id 3A63070C.F2661FED@viafractal.com.br
Whole thread Raw
Responses Re: Querying date interval  ("J.H.M. Dassen (Ray)" <jdassen@cistron-office.nl>)
Re: Querying date interval  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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-202000-11-25
(3 rows)

Thanks in advance!
--
Renato
Sao Paulo - SP - Brasil
rdg@viafractal.com.br




pgsql-sql by date:

Previous
From: Alexaki Sofia
Date:
Subject: improve performance
Next
From: "J.H.M. Dassen (Ray)"
Date:
Subject: Re: Querying date interval