| От | Alban Hertroys |
|---|---|
| Тема | Re: Any function for calculating inersect of intervals? |
| Дата | |
| Msg-id | 41EBEC66.8010909@magproductions.nl обсуждение |
| Ответ на | Any function for calculating inersect of intervals? (Együd Csaba <csegyud@vnet.hu>) |
| Ответы |
Re: Any function for calculating inersect of intervals?
Re: Any function for calculating inersect of intervals? |
| Список | pgsql-general |
Együd Csaba wrote: > Hi, > wondering if exists any functions which aim to calculate intersect of two > intervals. > E.g. I have four dates (D1, D2, D3, D4) and I want to know if (D1,D2) > intersects (D3,D4) or not. Try INTERSECTS :P SELECT * FROM table WHERE (D1, D2) INTERSECTS (D3, D4); Related, are there any operators/functions to test for adjacency (start of one is end of other), inclusion (interval is inside other interval) or wrapping (the inverse; interval is around other interval) of intervals? Alban.
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера