Below is my table contains duration as HH:MM:SS

i could convert it into seconds by
SELECT (SUBSTRING(CAST('00:01:15' AS NVARCHAR(MAX)),1,2) * 360)
+ (SUBSTRING(CAST('00:01:15' AS NVARCHAR(MAX)),4,2) * 60)
+ SUBSTRING(CAST('00:01:15' AS NVARCHAR(MAX)),7,2)
and now i need to update that table into seconds by reading each row of records how?
like instead of having ’00:01:15′ i need each row of @DURATIONINSECONDS
Try like below
If your table have value like this
Table1
and you want to Update the field DurationInSeconds into Seconds…
then just try like the below query….
then it give the Result like below