SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
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  

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)

17684 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  
 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.05 seconds. Powered By: Snitz Forums 2000