Hi everyone
I have the following table:
| Benefit | Company | Location | Unit | Track | Level | Value |
| Transport | | | | | | 1830 |
| Medical | | | | | | 8241 |
| Car Plan | | | | | 5 | 26217 |
| Car Plan | | | | | 6 | 23222 |
| Car Plan | | | | | 7 | 21054 |
| Car Plan | | | | | 8 | 18998 |
| Lunch | | LocA | | | | 25 |
| Lunch | | LocB | | | | 26 |
| Lunch | | LocC | | | | 32 |
Except for Benefit and Value columns, all other columns can assume null values. In this cases, it means that the Benefit has the same Value for all the possible values of that column.
I have another table that has all possible combinations for the columns Company, Location, Unit, Track and Level, but I want to join them considering the null columns, to add the Value column to this other table.
For example, in the first line, it means that the benefit has the same value for all the possible combinations of Company, Location, Unit, Track and Level. In the third line, it means that the benefit has the same value for all the possible combinations of Company, Location, Unit and Track for that specific Level.
Can anyone help me doing that?
Thanks in advance.