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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to Count time values in varchar2 field.

nazlfcNov 24 2010 — edited Nov 30 2010
Hi,

I have a database field which stores time values i.e. time taken values (in this case session times) in the following format:

00:07:06.63
00:05:19.51
00:09:39.52
00:03:53.8

The field is of a VARCHAR2 datatype. What I would like to do is to get a sum of these times as Total times using SQL. I have tried using to_number to convert these varchar2 times but no avail. Please can anyone provide with some examples or possible functions that I maybe able to use. Your help wil be greatly appreciated.

Thanks

Naz

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 28 2010
Added on Nov 24 2010
22 comments
3,591 views