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

Answers were Sorted based on User's Feedback



how to insert values like 10:10:00,30:25:00 etc.into table after insert how can i sum the above in..

Answer / gourvendra singh

Buddy i have did this thru the D2k, while creating the
column with the datatype varchar2 and put the format of the
field on the form level as the time format. this will
convert the time in seconds and store in the database.for
ex ur 1:00 will store as 3600 in the database

Is This Answer Correct ?    2 Yes 0 No

how to insert values like 10:10:00,30:25:00 etc.into table after insert how can i sum the above in..

Answer / 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

how to insert values like 10:10:00,30:25:00 etc.into table after insert how can i sum the above in..

Answer / avi007

select sum(hiredate,'hh') ||':'|| sum(hiredate,'mm')
||':'|| sum(hiredate,'ss') from emp;

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More SQL PLSQL Interview Questions

What is a join query?

0 Answers  


In a table only one column how to update rows

5 Answers   Microsoft,


Can you sum a count in sql?

0 Answers  


Is sql injection illegal?

0 Answers  


What do you mean by rowid?

0 Answers  






how many sql ddl commands are supported by 'mysql'? : Sql dba

0 Answers  


how to include character strings in sql statements? : Sql dba

0 Answers  


how to create object in plsql

3 Answers   Microsoft,


Does pl sql work in mysql?

0 Answers  


What does t sql mean?

0 Answers  


How many rows will return from dual table?

4 Answers   Fujitsu,


What is mutating trigger?How to avoid it??

3 Answers   Tech Mahindra,


Categories