Given these two (simplified) tables:
Task (list of tasks/employee with their start date and estimated cost)
---------
TaskId: int
EmpId: int
Start: Date
Days: int
WorkableDays (list of working dates/employee - i.e., without weekends/holidays)
---------
EmpId: int
Day: Date
Is there any way to get this result using just Access SQL (or any other SQL for that matter)?
TaskId, EmpId, EndDate
EDIT: if it simplifies things any, it's one employee per task (TaskId is the unique key here, not TaskId+EmpId)
(I'm including the EmpId for completeness sake, I'm not sure it's pertinent to the question)
Note: I think I'm pushing my luck with this one, but I'm trying to work out if I can do it just in SQL.