By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,222 Members | 1,610 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,222 IT Pros & Developers. It's quick & easy.

Overtime Query

P: n/a
I have designed a "Time Tracker Database"... Basically a Time Clock. I

have report that calculates the number of regular hours worked per
week.

Currently I am running the following query:
-----------------------------------------------------------

SELECT DateFilter.Employee, DateFilter.TimeTypeIn,
Sum(DateDiff("s",[ClockIn],[ClockOut]))\3600 &
Format((Sum(DateDiff("s",[ClockIn],[ClockOut])) Mod
3600)/86400,":nn:ss") AS TotalTime
FROM DateFilter
GROUP BY DateFilter.Employee, DateFilter.TimeTypeIn
HAVING (((DateFilter.TimeTypeIn)="Regular"));

-----------------------------------------------------------

This works great, and returns the total time. Now, what I would like
to do is calculate overtime. So basically I want:

TotalTime - 40 hours = Overtime

TotalTime would be calculated with the DateDiff above...

Any suggestions to accomplish this?

Feb 24 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.