Re: Time problem again?

Поиск
Список
Период
Сортировка
От Bjørn T Johansen
Тема Re: Time problem again?
Дата
Msg-id 1064911821.20427.16.camel@dt-btj.dagbladet.no
обсуждение исходный текст
Ответ на Re: Time problem again?  (Richard Huxton <dev@archonet.com>)
Ответы Re: Time problem again?  (Richard Huxton <dev@archonet.com>)
Список pgsql-general
On Tue, 2003-09-30 at 10:42, Richard Huxton wrote:

> So - your rule is something like:
>
> For some block of times...
>   IF max(my_time) - min(my_time) > 12 hours
>   THEN sort "through midnight"
>   ELSE sort "naturally"
>
> Which is what Tom said (I was wondering where he got his 12 hours from).
> Have I got that right?

Yes, that sounds about right.. :)
But how do I code this in an Select statement?


BTJ


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

Предыдущее
От: "Angel Todorov"
Дата:
Сообщение: pg_hba.conf
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Re: Time problem again?