Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Subtracting time end from time start

704072Jun 5 2009 — edited Jun 5 2009
I'm trying to get end time subtracted from start time

Here is the query:

SELECT TO_CHAR(service_end,'HH24:MI:SS') "EOD", TO_CHAR(service_start,'HH24:MI:SS') "SOD"

FROM response

So hypothetically (although this won't work), should give me the time
SELECT (TO_CHAR(service_end,'HH24:MI:SS') - TO_CHAR(service_start,'HH24:MI:SS')) "Total Time"
FROM response
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 3 2009
Added on Jun 5 2009
7 comments
1,839 views