Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Server > Re: how to coun...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 16528 of 17284
Post > Topic >>

Re: how to count elapsed time between sysdate and some saved timestamp?

by sybrandb@[EMAIL PROTECTED] May 7, 2008 at 07:51 PM

On Wed, 7 May 2008 18:45:04 +0200, "buu" <aha@[EMAIL PROTECTED]
> 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 DBA
 




 6 Posts in Topic:
how to count elapsed time between sysdate and some saved timesta
"buu" <aha@[  2008-05-07 18:45:04 
Re: how to count elapsed time between sysdate and some saved tim
sybrandb@[EMAIL PROTECTED  2008-05-07 19:51:11 
Re: how to count elapsed time between sysdate and some saved
"fitzjarrell@[EMAIL   2008-05-07 12:52:06 
Re: how to count elapsed time between sysdate and some saved
Mark D Powell <Mark.Po  2008-05-07 13:08:27 
Re: how to count elapsed time between sysdate and some saved
"fitzjarrell@[EMAIL   2008-05-07 13:45:04 
Re: how to count elapsed time between sysdate and some saved
Mark D Powell <Mark.Po  2008-05-07 17:27:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed Oct 15 13:24:37 CDT 2008.