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

What does trigger mean in psychology?

708


Which is better cte or subquery?

714


how to present a past time in hours, minutes and seconds? : Sql dba

739


What is a primary key example?

695


How do I run a sql script?

727






What is the use of non clustered index?

709


Explain the difference in execution of triggers and stored procedures?

748


What is the need of a partition key?

727


When sql appeared?

815


what are the authentication modes in sql server? How can it be changed? : Sql dba

954


What is pl sql package?

795


How bulk collect improves performance?

742


What is insert command in sql?

768


What is indexing in sql and its types?

738


What are the different sql languages?

739