Hi,
I have one data set that looks like below:
| Employee ID | Function |
1 | Apple |
| 2 | Ball |
| 3 | Cat |
| 4 | Ball |
| 5 | Cat |
| 6 | Apple |
| 7 | Apple |
There's another data set that looks like this:
| Employee ID | Specialty |
| 1 | Sweet |
| 6 | Sour |
| 9 | Bitter |
| 21 | Tasteless |
| 24 | Juicy |
| 26 | Salty |
I want to add the Column of Specialty to first data set based on matching Employee IDs in the two tables, however only for those Employee IDs that Function as 'Apple'. Some Employee IDs with Function as 'Apple' may not be present in second table (like there's no Employee ID 7 in second table) - in these cases, I want the Specialty to be blank. For Employee IDs with other Functions, I want the Specialty to be blank. So the final output should look like this:
| Employee ID | Function | Specialty |
1 | Apple | Sweet |
| 2 | Ball | |
| 3 | Cat | |
| 4 | Ball | |
| 5 | Cat | |
| 6 | Apple | Sour |
| 7 | Apple | |
Thanks.