In SQL server, to convert a varchar which have this format (nnn:nn:nn)
Posted
by
user1688917
on Stack Overflow
See other posts from Stack Overflow
or by user1688917
Published on 2012-10-01T21:36:03Z
Indexed on
2012/10/01
21:37 UTC
Read the original article
Hit count: 269
I have this varchar format as time accumulation and i want to convert it to an integer to do a SUM and get the total time for a group. The fist part which may be 1, 2, 3, 4 or even five digits represent the accumulation of Hours and then seperated by a colon. then come the second part which is accumulation of minutes and last accumulation of seconds (2 digits each). How to convert this to integer in one query if possile.
© Stack Overflow or respective owner