I have the following table:-
Staff Name, Day, Hrs, Wk1, Wk2, Wk3, Wk4 Total Hrs
Bob, Fri, 2, 1, 1, 0, 0 4
Bob, Fri, 2, 0, 1, 1, 0 4
Bob, Mon, 3, 0, 0, 0, 1 3
Currently this add up that bob is working 4 hours in wks 1 and 2
and 4 hours in wks 2 and 3 and 3 hours in wk 4 resulting in a total of 11 hours.
I want to be able to merge the records to this:
Bob, Fri, 2, 1, 1, 1, 0 6
Bob, Mon, 3, 0, 0, 0, 1 3
and get a total figure of 6 hours in wk 1, 2 and 3 and 3 hours in week 4 totalling: 7
Is this something I can do in query?
Staff Name, Day, Hrs, Wk1, Wk2, Wk3, Wk4 Total Hrs
Bob, Fri, 2, 1, 1, 0, 0 4
Bob, Fri, 2, 0, 1, 1, 0 4
Bob, Mon, 3, 0, 0, 0, 1 3
Currently this add up that bob is working 4 hours in wks 1 and 2
and 4 hours in wks 2 and 3 and 3 hours in wk 4 resulting in a total of 11 hours.
I want to be able to merge the records to this:
Bob, Fri, 2, 1, 1, 1, 0 6
Bob, Mon, 3, 0, 0, 0, 1 3
and get a total figure of 6 hours in wk 1, 2 and 3 and 3 hours in week 4 totalling: 7
Is this something I can do in query?