agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Stéphane RIFF <stephane.riff@cerene.fr>
To: pgsql-sql@postgresql.org
Subject: Query question
Date: Wed, 20 Apr 2005 18:11:40 +0200
Message-ID: <42667F3C.6080303@cerene.fr> (raw)

Hi ,

I have table that represent a switch activity like this :

|         date                    | state  |
| 2005-04-20 17:00:00 |   0     |
| 2005-04-20 17:00:15 |   0     |
| 2005-04-20 17:00:30 |   1     |
| 2005-04-20 17:00:45 |   1     |
| 2005-04-20 17:01:00 |   1     |
| 2005-04-20 17:01:15 |   0     |
| 2005-04-20 17:01:30 |   0     |
| 2005-04-20 17:01:45 |   0     |

I want to get the date of each states change but i not a sql expert.
Can someone advices me

Thanks




view thread (15+ messages)  latest in thread

Message-ID: <42667F3C.6080303@cerene.fr>
Permalink:  ../42667F3C.6080303@cerene.fr/
Also on:    postgresql.org/message-id/42667F3C.6080303@cerene.fr

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: stephane.riff@cerene.fr
  Subject: Re: Query question
  In-Reply-To: <42667F3C.6080303@cerene.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox