SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

nuruddean
Starting Member

Malaysia
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

khtan
In (Som, Ni, Yak)

Singapore
17635 Posts

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



KH
Time is always against us

Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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