Date Comparison Help

From: "Brian C(dot) Doyle" <bdoyle(at)umpa-us(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Date Comparison Help
Date: 2004-04-08 19:31:44
Message-ID: 6.0.3.0.2.20040408152839.01cb6c00@pop3.umpa-us.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Hello all,

I am rather confident that this has been answered in the past but searching
for it has been a pain so I am asking for some assistance.

I need a query to get data that is 6 months older than "today" or when that
query is run.

So the where clause is something like

WHERE table.date >= now() - 6 months

I know that will not work so how should I do this?

----------

UMPA
Brian C. Doyle
Director, Internet Services
United Merchant Processing Association
<http://www.umpa-us.com>http://www.umpa-us.com
1-800-555-9665 ext 212

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron St-Pierre 2004-04-08 19:34:10 Re: To_char statement problems
Previous Message Jim Wilson 2004-04-08 19:07:04 Re: To_char statement problems