DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: Difference between start time and end time

  1. #1
    Join Date
    Nov 2001
    Location
    New Brunswick, NJ
    Posts
    67
    How can I calculate the difference (in seconds/mins/etc) between to dates?

    Thanks,

    P

  2. #2
    Join Date
    Nov 2001
    Location
    New Brunswick, NJ
    Posts
    67
    This works.

    SELECT (to_date('08:10:45','hh:mi:ss')-to_date('08:10:15','hh:mi:ss'))*24*60*60
    FROM dual

    Thanks,

    P

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width