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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Script Library
 calculate total working hours
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

11 Posts

Posted - 05/11/2011 :  04:54:39  Show Profile  Reply with Quote
i have 1 table

table = attendance

actual_time_in = 04/02/2008 8:04:29
actual_time_out = 04/02/2008 17:14:24

so how i want to get the total hours fot that day?

My Name is Nuruddin

Edited by - nuruddean on 05/11/2011 04:55:21

In (Som, Ni, Yak)

17689 Posts

Posted - 05/11/2011 :  05:02:36  Show Profile  Reply with Quote
datediff(minute, actual_time_in, actual_time_out) / 60.0

Time is always against us

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000