i have a list of employees with start date and end date (and much other master data). i would like to count how many employees i had at each point in time. in some cases i would like to query this differentiated by company or occupational group.
i have the basic question if this is solved in the best-practise in a SET-Analysis or by a script.
If you have a date calendar already setup you can intervalmatch() to the employee table and then just do a distinct count of employeeID's over the dates that you're after.