S
shahram.shirazi
Hi guys
I am trying to develop a query in access to sum up the 'sum of hours'
by 'staff name', per month.
I would appreciate any help/comments, as i have no knowledge of
databases/or SQL.
An example is as follows.
---------------------------------------------------------------------------------------------------------------
Staff Name SumOfHours Day
Month Year
J Doe 3.5
21 1 2007
J Doe 2.0
22 1 2007
J Doe 4.5
23 1 2007
J Doe 7.5
24 1 2007
J Doe 0.5
25 1 2007
I would like the query to sum up the hours of the 5 rows above grouped
by the 'Staff Name'. However Im not sure how this would be represented
either eg. is it to possible to do the following
-----------------------------------------------------------------------------------------------------------
Staff Name SumOfHours Day
Month Year SumOfHoursWorked
J Doe 3.5
21 1 2007 0
J Doe 2.0
22 1 2007 0
J Doe 4.5
23 1 2007 0
J Doe 7.5
24 1 2007 0
J Doe 0.5
25 1 2007 18 (this no from
adding rows 1-5 SumOfHours from and putting it on the last row for
that Staff members (eg last day - 25).
Again, would really appreciate the help here.
Cheer guys,
Shahram
I am trying to develop a query in access to sum up the 'sum of hours'
by 'staff name', per month.
I would appreciate any help/comments, as i have no knowledge of
databases/or SQL.
An example is as follows.
---------------------------------------------------------------------------------------------------------------
Staff Name SumOfHours Day
Month Year
J Doe 3.5
21 1 2007
J Doe 2.0
22 1 2007
J Doe 4.5
23 1 2007
J Doe 7.5
24 1 2007
J Doe 0.5
25 1 2007
I would like the query to sum up the hours of the 5 rows above grouped
by the 'Staff Name'. However Im not sure how this would be represented
either eg. is it to possible to do the following
-----------------------------------------------------------------------------------------------------------
Staff Name SumOfHours Day
Month Year SumOfHoursWorked
J Doe 3.5
21 1 2007 0
J Doe 2.0
22 1 2007 0
J Doe 4.5
23 1 2007 0
J Doe 7.5
24 1 2007 0
J Doe 0.5
25 1 2007 18 (this no from
adding rows 1-5 SumOfHours from and putting it on the last row for
that Staff members (eg last day - 25).
Again, would really appreciate the help here.
Cheer guys,
Shahram