Re: [SQL] Check set of date intervals

2010-05-27 Thread A. Kretschmer
In response to Anton Gavazuk : > Hi Andreas, > > great thanks for the response, please, answer to the list, not to me, okay? > > unfortunately function just tests every row  - it doesnt construct set of > periods which would cover choosed period. That's hard to achieve ... maybe you have to c

Re: [SQL] Check set of date intervals

2010-05-27 Thread A. Kretschmer
In response to A. Kretschmer : > > please, suggest an idea how to implement this in SQL without writing a > > procedure. > > There are a really nice additional contrib module from Jeff Davis, > described here: > > http://thoughts.j-davis.com/2010/03/09/temporal-postgresql-roadmap/ > short examp

Re: [SQL] Check set of date intervals

2010-05-27 Thread A. Kretschmer
In response to Anton Gavazuk : > Hi all, > > have such relation A: > > PERIOD_ID | DATE_START | DATE_END | OTHER_ATTRIBUTES... >   1     | 01.01.2010  |  01.02.2010 >   2 | 03.02.2010  |  04.03.2010 . > .. > > I want to search among periods for the set of

[SQL] Check set of date intervals

2010-05-27 Thread Anton Gavazuk
Hi all, have such relation A: PERIOD_ID | DATE_START | DATE_END | OTHER_ATTRIBUTES... 1 | 01.01.2010 | 01.02.2010 2 | 03.02.2010 | 04.03.2010 . .. I want to search among periods for the set of periods which completely covers passed search peri