|
zokhox
Starting Member
Australia
4 Posts |
Posted - 06/27/2012 : 20:03:12
|
Hi I have 3 tables as: Worker (WorkerID, WorkerName), WorkOnProject (ProjectID, WorkerID, NumberDays) AbsentOnProject (ProjectID, WorkerID, AbsentDays) "AbsentDays is a negative number"
I need to write a query which shows WorkerID, WorkerName and a column which shows the result of (NumberDays + AbsentDays) for each worker.
Please note that there could be multiple Absent records for each worker in the AbsentOnProject table. So I think I should Sum AbsentDays for each worker first then add the result to NumberDays in the WorkOnProject |
|