Selecting between dates - Mailing list pgsql-general

From Wim Kerkhoff
Subject Selecting between dates
Date
Msg-id XFMail.990810145736.wim@netmaster.ca
Whole thread Raw
Responses Re: [GENERAL] Selecting between dates
Re: [GENERAL] Selecting between dates
List pgsql-general
Hi,

I am creating a script that sends out reminders to subscribers to a site who
have not paid.  I can't figure out the math that will add 7 days to a date.

I want something like this:

select * from company where created
is between (lastpaid + 14 days) and (created + 28 days);

I can't figure out the syntax that will let me add days to a date.  I checked
the archives and the Postgresql doc's, but nothing.

Ideas?

Thanks,

Wim Kerkhoff.

pgsql-general by date:

Previous
From: Dmitry Morozovsky
Date:
Subject: Re: [GENERAL] ALTER TABLE
Next
From: Bill Garrett
Date:
Subject: anomalous, persistent high loads with postgresql 6.5.1