Re: Efficient date range search?

Поиск
Список
Период
Сортировка
От Nigel J. Andrews
Тема Re: Efficient date range search?
Дата
Msg-id Pine.LNX.4.21.0210081817160.3248-100000@ponder.fairway2k.co.uk
обсуждение исходный текст
Ответ на Re: Efficient date range search?  (Jean-Luc Lachance <jllachan@nsd.ca>)
Список pgsql-general
Actually it is supposed to give correct results

As a bonus it follows standard DB practices rather than falling into the 9/9/99
trap which everyone was so worried about a couple of years ago.


On Mon, 7 Oct 2002, Jean-Luc Lachance wrote:

> And that is supposed to be more efficient then
> select * from pets where died > {whatever date};
>
> C'mon...
>
>
> "Nigel J. Andrews" wrote:
> >
> > SELECT *
> >  FROM pets
> >  WHERE
> >   born <= '2001-07-04 07:01:00+00'
> >  AND
> >   (
> >    died > '2001-07-04 07:01:00+00'
> >   OR
> >    died is NULL
> >   )


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

Предыдущее
От: "David F. Skoll"
Дата:
Сообщение: Re: [ADMIN] pg_dump command inside shell scripts
Следующее
От: Doug Fields
Дата:
Сообщение: ORDER BY and LIMIT questions in EXCEPTs