Re: merge timestamps to intervals

From: Craig Ringer <craig(at)postnewspapers(dot)com(dot)au>
To: Patrick Scharrenberg <pittipatti(at)web(dot)de>, pgsql-sql(at)postgresql(dot)org
Subject: Re: merge timestamps to intervals
Date: 2008-05-12 06:33:03
Message-ID: 4827E49F.3070508@postnewspapers.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Andreas Kretschmer 2008-05-12 06:56:54 Re: merge timestamps to intervals
Previous Message Patrick Scharrenberg 2008-05-12 05:38:47 merge timestamps to intervals