Re: merge timestamps to intervals - Mailing list pgsql-sql

From Craig Ringer
Subject Re: merge timestamps to intervals
Date
Msg-id 4827E49F.3070508@postnewspapers.com.au
Whole thread Raw
In response to merge timestamps to intervals  (Patrick Scharrenberg <pittipatti@web.de>)
List pgsql-sql
Patrick Scharrenberg wrote:

> I'd like to merge this information to intervals where the service was up
> or down.
> 
>     < intervall, status >
>     10:13-10:15    up
>     10:16-10:16    down
>     10:17-1018    up
> 
> I've no clue how to approach this problem.

About 12 hours ago there was a conversation in pgsql-sql with subject
"Difference in columns" that included examples that can be trivially
adapted to your problem.

--
Craig Ringer


pgsql-sql by date:

Previous
From: Patrick Scharrenberg
Date:
Subject: merge timestamps to intervals
Next
From: Andreas Kretschmer
Date:
Subject: Re: merge timestamps to intervals