N
Nathan-bfhd
I'm working with data that has a time stamp every time someone has a WorkCode
change or signs out. Sometimes somebody will work in several different
departments in a single day. An example of the data is below
PID Name WorkCode Time TotalTime
TotalDayTime
----------------------------------------------------------------------------------------------
1 Pete Parse Marketing 11/2/2007 7:55:12 AM ????
????
1 Pete Parse Sales 11/2/2007 12:10:28 PM ????
????
1 Pete Parse Log Out 11/2/2007 4:59:38 PM ????
????
2 Angela Ang Marketing 11/2/2007 8:01:23 AM ????
????
2 Angela Ang Log Out 11/2/2007 5:10:45 PM ????
????
All the information I've been able to find on comparing times deals with a
start time and end time in the same record. I don't have that luxury. I do
however have a clear record of when someone starts (earliest time for that
day) and when they stop (time recorded at Log Out). It gets even more
confusing if someone logs in and out several times in the same day. I know
the data is there, I'm just not quite sure how to calculate:
1) time that has passed from the logging of one WorkCode to the next
2) total time worked for a given day per person (PID)
Can someone please help me out here? I have more fields/info available if
something else is needed; I'm just trying to keep my explanation as simple as
possible.
change or signs out. Sometimes somebody will work in several different
departments in a single day. An example of the data is below
PID Name WorkCode Time TotalTime
TotalDayTime
----------------------------------------------------------------------------------------------
1 Pete Parse Marketing 11/2/2007 7:55:12 AM ????
????
1 Pete Parse Sales 11/2/2007 12:10:28 PM ????
????
1 Pete Parse Log Out 11/2/2007 4:59:38 PM ????
????
2 Angela Ang Marketing 11/2/2007 8:01:23 AM ????
????
2 Angela Ang Log Out 11/2/2007 5:10:45 PM ????
????
All the information I've been able to find on comparing times deals with a
start time and end time in the same record. I don't have that luxury. I do
however have a clear record of when someone starts (earliest time for that
day) and when they stop (time recorded at Log Out). It gets even more
confusing if someone logs in and out several times in the same day. I know
the data is there, I'm just not quite sure how to calculate:
1) time that has passed from the logging of one WorkCode to the next
2) total time worked for a given day per person (PID)
Can someone please help me out here? I have more fields/info available if
something else is needed; I'm just trying to keep my explanation as simple as
possible.