N
newbie123
I have two tables:
Table 1 Field Names:
1. Emp ID
2. Units
Table 2 Field Names
1. Emp ID
2. Units
*There are Emp IDs in Table 1 that may not be in table 2 - and vice versa.
*There are Emp IDs in each table that may appear more than once - due to the
multiple work days.
I can't use the JOIN function as it does not give me the option I want - that
is to create Table 3 where:
1. If Emp ID 12345 is in both Table 1 (unit=4) and Table 2 (unit=6) , then
in Table 3 put the sum of Emp ID 12345, unit =10.
2. If Emp ID 12345 is in Table 1 (unit=4) and NOT in Table 2, then in Table
3 put the sum of Emp ID 12345, unit =4.
3. If Emp ID 12345 is not in Table 1 and in Table 2 (unit=6), then in Table
3 put the sum of Emp ID 12345, unit =6.
Help!
Table 1 Field Names:
1. Emp ID
2. Units
Table 2 Field Names
1. Emp ID
2. Units
*There are Emp IDs in Table 1 that may not be in table 2 - and vice versa.
*There are Emp IDs in each table that may appear more than once - due to the
multiple work days.
I can't use the JOIN function as it does not give me the option I want - that
is to create Table 3 where:
1. If Emp ID 12345 is in both Table 1 (unit=4) and Table 2 (unit=6) , then
in Table 3 put the sum of Emp ID 12345, unit =10.
2. If Emp ID 12345 is in Table 1 (unit=4) and NOT in Table 2, then in Table
3 put the sum of Emp ID 12345, unit =4.
3. If Emp ID 12345 is not in Table 1 and in Table 2 (unit=6), then in Table
3 put the sum of Emp ID 12345, unit =6.
Help!