in-date news items

Поиск
Список
Период
Сортировка
От Gary Stainburn
Тема in-date news items
Дата
Msg-id E16klCx-0005A6-00@stan.ringways.co.uk
обсуждение исходный текст
Ответы Re: in-date news items  ("Andrew G. Hammond" <drew@xyzzy.dhs.org>)
Re: in-date news items  (Peter Eisentraut <peter_e@gmx.net>)
Re: in-date news items  (Ian Barwick <barwick@gmx.de>)
Список 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     


В списке pgsql-sql по дате отправления:

Предыдущее
От: "D'Arcy J.M. Cain"
Дата:
Сообщение: Re: GRANT problem ?
Следующее
От: Gary Stainburn
Дата:
Сообщение: Re: in-date news items