I have 2 tables in my database.
Table A
ProjectWeek Employee AllocationHours AllocationCost
1 Ian 2 222
1 Bob 3 333
1 Steve 1 111
2 Ian 9 999
Table B
ProjectWeek Employee TimesheetHours TimesheetCost
1 Ian 63 6999.93
1 Steve 4 40
3 Derek 8 85
I have tried many ways to join these tables to get the following result: -
ProjectWeek Employee AllocationHours AllocationCost TimesheetHours TimesheetCost
1 Ian 2 222 63 6999.93
1 Bob 3 333 0 0
1 Steve 1 111 4 40
2 Ian 9 999 0 0
3 Derek 0 0 8 85
Basically I want a query that groups my combined results by Project Week and Employee.
Any help much appreciated
Table A
ProjectWeek Employee AllocationHours AllocationCost
1 Ian 2 222
1 Bob 3 333
1 Steve 1 111
2 Ian 9 999
Table B
ProjectWeek Employee TimesheetHours TimesheetCost
1 Ian 63 6999.93
1 Steve 4 40
3 Derek 8 85
I have tried many ways to join these tables to get the following result: -
ProjectWeek Employee AllocationHours AllocationCost TimesheetHours TimesheetCost
1 Ian 2 222 63 6999.93
1 Bob 3 333 0 0
1 Steve 1 111 4 40
2 Ian 9 999 0 0
3 Derek 0 0 8 85
Basically I want a query that groups my combined results by Project Week and Employee.
Any help much appreciated