Clever way to check overlapping time intervals ?

Поиск
Список
Период
Сортировка
От Andreas
Тема Clever way to check overlapping time intervals ?
Дата
Msg-id 4E728CD7.9040505@gmx.net
обсуждение исходный текст
Ответы Re: Clever way to check overlapping time intervals ?  (Andreas Kretschmer <akretschmer@spamfence.net>)
Re: Clever way to check overlapping time intervals ?  (Frank Bax <fbax@sympatico.ca>)
Список pgsql-sql
Hi,
is there a clever way to check overlapping time intervals ?
An option named n should be taken from date y to y.
The same name is ok for another interval.

e.g. table :  mytab ( d1 date, d2 date, n text, v text )

There should be a constraint to provide no row can have a d1 or d2 
within the interval of another row in case they have the same n.

And no row can have an interval that encloses an existing interval.


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

Предыдущее
От: Nicoletta Maia
Дата:
Сообщение: Re: Window function sort order help
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: Clever way to check overlapping time intervals ?