Re: [SQL] Clever way to check overlapping time intervals ?

2011-09-16 Thread pasman pasmaƄski
You can convert dates to cube, they have overlap operator && 2011/9/16, Andreas Kretschmer : > Andreas wrote: > >> 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.

Re: [SQL] Clever way to check overlapping time intervals ?

2011-09-16 Thread Frank Bax
On 09/15/11 19:40, Andreas wrote: 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

Re: [SQL] Window function sort order help

2011-09-16 Thread Tim Landscheidt
Dianna Harter wrote: > Having trouble getting a window function to sort correctly. > Given this data > consumer_id | move_date | history_timestamp > -++ >12345| 2008-01-05 | 2007-12-11 06:02:26.842171 >12345| 2008-02-29 |