Selecting between dates

From: Wim Kerkhoff <wim(at)netmaster(dot)ca>
To: Postgresql-general <pgsql-general(at)postgresql(dot)org>
Subject: Selecting between dates
Date: 1999-08-10 14:57:36
Message-ID: XFMail.990810145736.wim@netmaster.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Wim Kerkhoff 1999-08-10 15:49:31 Re: [GENERAL] Selecting between dates
Previous Message Ross J. Reedstrom 1999-08-10 14:36:40 Re: Fw: [GENERAL] uppercase of char16