Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> difference between 2 dates ?

difference between 2 dates ?

From: gil guerillot <gil.guerillot_at_ratp.fr>
Date: Wed, 13 Feb 2002 17:28:13 +0100
Message-ID: <a4e444$1seq$1@gotix.reseau.ratp>


here is one table who records all the changes of object status

exemple

OBJ status date

A          ON              01/01/02 8:00:00
B          ON              01/01/02 8:00:00
C          ON              01/01/02 10:00:00
A          OFF            01/01/02 11:00:00
A          ON              01/01/02 12:00:00
B          OFF             01/01/02 12:00:00
D          ON              01/01/02 13:00:00
A          OFF             02/01/02 8:00:00

how can i do by a select query for calculate for each object the total time between ON and OFF Received on Wed Feb 13 2002 - 10:28:13 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US