Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Compute difference between timestamps
On Sat, 03 Jun 2006 11:06:51 -0700, c8s3dw wrote:
> In Oracle database, given two timestamp columns, how do I compute the
> difference, expressed in seconds, to three decimal places? i.e. 452.936
By converting them to date with to_date function and then multiplying by the number of seconds in the normal day. Under certain circumstances, day can have 23 or 25 hours. You don't want one of those days.
-- http://www.mgogala.comReceived on Sun Jun 04 2006 - 00:45:30 CDT