D
deodev
Hi,
Below is the data I have in a table. I would like to create a headcount
query that would show headcout by month see below. Our Fiscal Year starts Nov
and ends in Oct. If a person starts anytime during the month, headcount is
one if terminated any time during the month then headcount is zero.
TABLE
Employee Hire Date Term Date
Emp1 6/1/2007
Emp2 8/5/2007 2/12/2008
Emp3 1/18/2008
Emp4 1/12/2008 5/16/2008
Emp5 9/5/2008 9/16/2008
Emp Hire Term Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sept Oct Total Avg
Emp1 6/07 - 1 1 1 1 1 1 1 1 1 1 1 1
12 1.00
Emp2 8/07 2/08 1 1 1 0 0 0 0 0 0 0 0 0
3 0.25
Emp3 1/08 - 0 0 1 1 1 1 1 1 1 1 1 1
10 0.83
Emp4 1/08 5/08 0 0 1 1 1 1 0 0 0 0 0 0
4 0.33
Emp5 9/08 9/08 0 0 0 0 0 0 0 0 0 0 0
0 0 0
Below is the data I have in a table. I would like to create a headcount
query that would show headcout by month see below. Our Fiscal Year starts Nov
and ends in Oct. If a person starts anytime during the month, headcount is
one if terminated any time during the month then headcount is zero.
TABLE
Employee Hire Date Term Date
Emp1 6/1/2007
Emp2 8/5/2007 2/12/2008
Emp3 1/18/2008
Emp4 1/12/2008 5/16/2008
Emp5 9/5/2008 9/16/2008
Emp Hire Term Nov Dec Jan Feb Mar Apr May Jun Jul Aug Sept Oct Total Avg
Emp1 6/07 - 1 1 1 1 1 1 1 1 1 1 1 1
12 1.00
Emp2 8/07 2/08 1 1 1 0 0 0 0 0 0 0 0 0
3 0.25
Emp3 1/08 - 0 0 1 1 1 1 1 1 1 1 1 1
10 0.83
Emp4 1/08 5/08 0 0 1 1 1 1 0 0 0 0 0 0
4 0.33
Emp5 9/08 9/08 0 0 0 0 0 0 0 0 0 0 0
0 0 0