Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Sum- Time

Author  Topic 

dg19
Starting Member

15 Posts

Posted - 2010-10-14 : 02:20:54
Hi All,

I have a column("Duration",datatype:datetime)in my table which consist of data such as below:
Duration
1899-12-30 00:02:15.000
1899-12-30 00:01:12.000

I want to sum the time. For example with the above data i will like to get 00:03:27.00

Please advice. Thanking you in advance.

Amit

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-10-14 : 02:44:22
http://www.sqlteam.com/article/working-with-time-spans-and-durations-in-sql-server


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

dg19
Starting Member

15 Posts

Posted - 2010-10-14 : 06:34:30
Many Thanks for your reply Webfred

Regards,

Amit
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-10-14 : 07:26:41
welcome


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -