Re: Split daterange into sub periods

Поиск
Список
Период
Сортировка
От hmidi slim
Тема Re: Split daterange into sub periods
Дата
Msg-id CAMsqVxtZa_Pn4nTbjkV9q0mdd0vbtUNXLKmkngC44reJ0xuP4A@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Split daterange into sub periods  (Adrian Klaver <adrian.klaver@aklaver.com>)
Ответы Re: Split daterange into sub periods  (Francisco Olarte <folarte@peoplecall.com>)
Re: Split daterange into sub periods  (Alban Hertroys <haramrae@gmail.com>)
Список pgsql-general
In fact I'm trying to split a period in sub periods. Following this example :
If I have a period =[2018-01-01, 2018-01-31] and two other periods [2018-01-04, 2018-01-06] and [2018-01-08, 2018-01-08].
If I split the base period '[2018-01-01, 2018-01-31]' by the other two periods '[2018-01-04, 2018-01-06]' and '[2018-01-08, 2018-01-08]' I will got such a result:
[2018-01-01, 2018-01-03]
[2018-01-07, 2018-01-07]
[2018-01-09, 2018-01-31].

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Split daterange into sub periods
Следующее
От: Francisco Olarte
Дата:
Сообщение: Re: Split daterange into sub periods