in-date news items

From: Gary Stainburn <gary(dot)stainburn(at)ringways(dot)co(dot)uk>
To: "pgsql-sql" <pgsql-sql(at)postgresql(dot)org>
Subject: in-date news items
Date: 2002-03-12 12:17:05
Message-ID: E16klCx-0005A6-00@stan.ringways.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Hi all,

I'm trying to use a select to get the latest item of news, provided that it's
within the last X days. What do I need to add to the where clause for the
select statement below:

select ndate, nauthor, nheading
from news
order by ndate desc
limit 1
*** where ndate within the last 3 months ******
;
--
Gary Stainburn

This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Ian Barwick 2002-03-12 13:25:14 Re: in-date news items
Previous Message D'Arcy J.M. Cain 2002-03-12 11:59:21 Re: GRANT problem ?