crystalnewbie
MIS
I need to create an hourly labor report that looks like:
Hour | # of hours worked
8am - 9am | 2.0
9am - 10am | 1.0
10am - 11am | .5
etc.
given that I have the following information:
EmployeeName | PunchIn | PunchOut
John Doe | 3/1/04 8am | 3/1/04 11:30am
Jane Doe | 3/1/04 8am | 3/1/04 8:59am
I think the solution would be to create a stored proc to transform the data above to look like the one below.
Employee Name 8am-9am 9am-10am 10am-11am ..
John Doe 1 1 0.5
My attempts to create this proc has been futile. Can someone please point me to the right direction. THanks.
Hour | # of hours worked
8am - 9am | 2.0
9am - 10am | 1.0
10am - 11am | .5
etc.
given that I have the following information:
EmployeeName | PunchIn | PunchOut
John Doe | 3/1/04 8am | 3/1/04 11:30am
Jane Doe | 3/1/04 8am | 3/1/04 8:59am
I think the solution would be to create a stored proc to transform the data above to look like the one below.
Employee Name 8am-9am 9am-10am 10am-11am ..
John Doe 1 1 0.5
My attempts to create this proc has been futile. Can someone please point me to the right direction. THanks.