Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Rounding Times

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-09-07 : 14:15:54
Andrew writes "I have a recordset returning a TIMESPAN between two dates returning the result in minutes. If I do a simple caluclation I can get back the hours and minutes represented as a decimal. IE
593 minutes = 9.883333 Hours. Well .888333 doesn't do me much good and I want to be able to round to the nearest Quarter hour (15, 30, 45, 60) so in this case it would round to 10 hours. I know I can do this outside of SQL like in ASP, but I want to know if the Database can do it.


-- Thanks


Andrew"
   

- Advertisement -