Hi,
I have data similar to this:
I need to write a query to show the average number of employees at status 3 on the first day of each month, over a rolling 12 months. The data is updated on an irregular schedule so there's no date corresponding to 10/1, in this case. The last records entered each month represent the status at month end but I don't know how to write queries to extract that over the course of a year. I'd appreciate any help you could provide!
Thanks,
Shawn
I have data similar to this:
Code:
RecordNum Date EmployeeNum Status 126 9/18/2017 10211 3 127 9/20/2017 10212 2 128 9/20/2017 10213 2 129 9/21/2017 10214 3 130 9/21/2017 10215 2 131 9/26/2017 10211 2 132 9/26/2017 10212 3 133 9/28/2017 10213 1 134 9/28/2017 10214 1 135 9/29/2017 10215 3 136 10/3/2017 10212 1 137 10/3/2017 10214 1 138 10/4/2017 10215 3 139 10/5/2017 10218 1 140 10/5/2017 10224 1
Thanks,
Shawn
Comment