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

Home -> Community -> Usenet -> c.d.o.server -> Re: Date Arithmetic Question

Re: Date Arithmetic Question

From: Maurice E. Jarrell <mejarrell_at_worldnet.att.net>
Date: 23 Oct 1999 08:26:34 -0500
Message-ID: <wk1zamb439.fsf@worldnet.att.net>

> What sql can I use to tel how many hours(10,2 number) have elapsed between
> to DATE type fields

Try:

SQL> select ( sysdate - (sysdate - 5 - 3/24) ) * 24 from dual;

(SYSDATE-(SYSDATE-5-3/24))*24


                          123


Sincerely,
Maury Received on Sat Oct 23 1999 - 08:26:34 CDT

Original text of this message

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