how to insert values like 10:10:00,30:25:00 etc.into table
after insert how can i sum the above insert values to get
the result as 40:35:00

Answer Posted / sushant kumar

select sum(to_number(substr(num,1,2))) ||':'||
sum(to_number(substr(num,4,2))) ||':'||
sum(to_number(substr(num,7,2)))
from tt

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1. is it possible to use the cursor atttibutes (%found ,% rowcount , %isopen , %notfound ) to our user defined cursor names ....... cursor cursor_name is select * from scott.emp if you use... cursor_name%found , %rowcount ,%isopen,%notfound...will it work... -------------------------- 2.what is the difference between the varray and index by table .. -------- 3. type type_name is table of number(8,3) index by binary_integer; identifier_name type_name; first , last , prior , next ,trim are the methods we can use it for the above type...simillary is there any way to apply for cursors... with thanks and regards..sarao...

1908


What is difference between stored function and application function?

592


Why do we use triggers?

515


List the ways to get the count of records in a table?

503


what is the command line end user interface - mysql? : Sql dba

498






How are sql commands classified?

589


what are the different type of sql's statements ? : Sql dba

520


Show how functions and procedures are called in a pl/sql block.

586


Is progress software supports to ( pl/sql )?

523


What's the difference between inner join and left join?

511


What is a nested table in word?

529


Is sql dba a good career? : SQL DBA

529


how many groups of data types? : Sql dba

563


What is sql in oracle?

623


How to find 3rd highest salary of an employee from the employee table in sql?

564