Calculate Total Hours, Minutes and Seconds using T-SQL

added by mopen
3/16/2010 8:32:51 PM

0 Kicks, 150 Views

I was writing a query where the table had three columns for Hours, Minutes and Seconds. I had to calculate the total hours, minutes and seconds for all the rows. The query had to also take care of rounding off every 60 minutes to an hour and every 60 seconds to a minute. Here’s the query if you have a similar requirement:


0 comments