songwritingguy
Technical User
Greetings,
I am using a query which captures 'logon' time for each user and then 'Time of last activity'. I'm then doing simple subtraction to return 'Actual hours worked'. However, I need to skip the lunch hour in my calculation because no work is being performed. Here's the portion of my query that deals with the time:
CVDate([LastOfACTIVITY_DATE_TIME]-[FirstOfLOGON_DATE_TIME]) AS [Time Logged]
currently, when I run the query at 1pm, I get the following results: user#1 who started at 8am and quit at 12pm shows time logged as 4 hrs which is correct. User #2 started at 8am and took a 1 hour lunch at noon, yet his time logged shows 5 hrs.
How can I ammend my query to reflect the downtime?
Having my user logoff at lunch is not an option due to other complicated issues.
Thanks,
Drew
I am using a query which captures 'logon' time for each user and then 'Time of last activity'. I'm then doing simple subtraction to return 'Actual hours worked'. However, I need to skip the lunch hour in my calculation because no work is being performed. Here's the portion of my query that deals with the time:
CVDate([LastOfACTIVITY_DATE_TIME]-[FirstOfLOGON_DATE_TIME]) AS [Time Logged]
currently, when I run the query at 1pm, I get the following results: user#1 who started at 8am and quit at 12pm shows time logged as 4 hrs which is correct. User #2 started at 8am and took a 1 hour lunch at noon, yet his time logged shows 5 hrs.
How can I ammend my query to reflect the downtime?
Having my user logoff at lunch is not an option due to other complicated issues.
Thanks,
Drew