Re: how to count elapsed time between sysdate and some saved timestamp?
From: <sybrandb_at_hccnet.nl>
Date: Wed, 07 May 2008 19:51:11 +0200
Message-ID: <urq3241f4fiota947347usgiuq0b7a5ao5@4ax.com>
Date: Wed, 07 May 2008 19:51:11 +0200
Message-ID: <urq3241f4fiota947347usgiuq0b7a5ao5@4ax.com>
On Wed, 7 May 2008 18:45:04 +0200, "buu" <aha_at_a.com> wrote:
>question is simple... I have an date field in an table and I would like to
>measure time difference (minutes or sec.) between current time and that
>field.
>
>at wich way you propose?
>
Assuming a non-paleolithic version of Oracle (I appreciate, you, as someone asking help, can't be bothered to post it, as you assume Oracle never changes), one would just subtract the two dates (the unit of a date is a day), so you get the difference expressed as a days fraction and feed that through the numtodsinterval function.
-- Sybrand Bakker Senior Oracle DBAReceived on Wed May 07 2008 - 12:51:11 CDT