I have a master query called [Master_Bid] that returns an employee request for department change . Each employee gets to pick four different departments label 1,2,3,4. Also each employee has their hire date attached to their request. The query is arranged from oldest hire date to newest.
Since each department has only 10 slots , I would like a query that will award each employee with their request until a department is full.
For example query go to the first employee using seniority and look at their first request, if that department is not full it will award it. If that department is full it would look at their second option and so on until the employee is placed.
After that it will go to the next employee in line and repeat the process.
When I view the query for each department is will show the employees that's were awarded for that department.
Thank you
Since each department has only 10 slots , I would like a query that will award each employee with their request until a department is full.
For example query go to the first employee using seniority and look at their first request, if that department is not full it will award it. If that department is full it would look at their second option and so on until the employee is placed.
After that it will go to the next employee in line and repeat the process.
When I view the query for each department is will show the employees that's were awarded for that department.
Thank you