Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
Hours Calculation in SQL Server
pradeep kumar
10y
976
1
Reply
I'm doing like this..!!!
DECLARE @minutes AS INT
SET @minutes = 1.80*100
SELECT @minutes / 60 + (@minutes % 60) / 100.0 AS Hours
it gives me 3.000 but the result should be 2.20 hrs
how can i acheive that..?
pls help me out
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
self joining
Microsoft SQL Management Studio Package failed to load