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: "Delta" or "elapsed" time column in Oracle

Re: "Delta" or "elapsed" time column in Oracle

From: David Best <davebest_at_usa_dot_net>
Date: Fri, 4 Jun 2004 10:52:12 -0700
Message-ID: <Gc2dnfzu2upRK13d4p2dnA@speakeasy.net>


"Bill McLaughlin" <mcbill20_at_hotmail.com> wrote in message news:e9cbc4f2.0406032216.78d2dbfc_at_posting.google.com...
> Thanks to both of you for the info. I ended up using the INTERVAL DAY
> TO SECOND to store the data. I hope I made the right choice. Now my
> main problem is using this column in calculations. It's easy to select
> based on interval ranges, but I am having difficult using other
> functions (like mean and average) as they are expecting numeric
> values. I am going through the SQL reference to find the solution.
> However, if anyone can point me to any specific documentation or
> examples I'd appreciate it.
>
> Thanks in advance.
>
> Bill

I would recommend more experimentation before you settle on an approach; interval types have many limitations. Here's a function that can help your calculations:

Dave Received on Fri Jun 04 2004 - 12:52:12 CDT

Original text of this message

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