Hello.
I has a table that has a similar look as this:
job, cost, employee1, employee2, percentage
I want to create a report where I got the sum of a unique employee. The trouble is that he can be employee1 or employee2. I can get the sum of every employee1, and the sum of every employee2. What I want is to add the corresponding employee from the two queries.
I think I need to give an example:
employee1 employee2
Adam, 500 Nick, 300
Nick, 750 Steve, 550
Steve, 300
As you can see, there arent always all employee at booth tables.
Now i want a query, where I get the folowing result
Adam, 500
Nick, 1050
Steve, 850
Hope i made myself clear. Perhaps I have made the thing more difficult than it is, but please help me.
Regards Kenta
I has a table that has a similar look as this:
job, cost, employee1, employee2, percentage
I want to create a report where I got the sum of a unique employee. The trouble is that he can be employee1 or employee2. I can get the sum of every employee1, and the sum of every employee2. What I want is to add the corresponding employee from the two queries.
I think I need to give an example:
employee1 employee2
Adam, 500 Nick, 300
Nick, 750 Steve, 550
Steve, 300
As you can see, there arent always all employee at booth tables.
Now i want a query, where I get the folowing result
Adam, 500
Nick, 1050
Steve, 850
Hope i made myself clear. Perhaps I have made the thing more difficult than it is, but please help me.
Regards Kenta