I have declared a time variable with value 23:59:59. So, I need to round it to 24:00. Have you any idea?
declare @t1 time = '23:59:59'
This is necessary only in the select statement. I know that time cannot be inserted as 24:00.
http://msdn.microsoft.com/en-us/library/bb677243(v=sql.105).aspx
How about: