Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi All,

I would like to have result in seconds (Total Time value) with micro second values. Can you give any time value function to get the proper result. I need sum of the result values.


Start- time

05-FEB-15 11.56.33.638000000 PM
05-FEB-15 11.56.54.837000000 PM
05-FEB-15 11.56.54.556000000 PM
05-FEB-15 11.56.56.608000000 PM


End-time


05-FEB-15 11.56.33.738000000 PM
05-FEB-15 11.56.33.954000000 PM
05-FEB-15 11.56.54.937000000 PM
05-FEB-15 11.56.54.956000000 PM




Response time =(start-time)-(End-time)


Thanks,
sarma.
Posted
Comments
Kuthuparakkal 14-Feb-15 21:43pm    
DATEDIFF(SS, [Start-Time], [End-Time])
Herman<T>.Instance 16-Feb-15 5:09am    
Set it as answer so I can upvote it.
Kuthuparakkal 16-Feb-15 8:38am    
Done!

1 solution

Here you go:
SQL
DATEDIFF(SS, [Start-Time], [End-Time])


Ref: https://msdn.microsoft.com/en-us/library/ms189794.aspx[^]
 
Share this answer
 
Comments
Herman<T>.Instance 16-Feb-15 8:39am    
my 5!
Kuthuparakkal 16-Feb-15 10:36am    
Thank you

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900