Forum Discussion

dapperscavenger's avatar
3 years ago
Solved

Join three tables where no fields match (full outer?)

I have three tables, example:      Table 1 shows the normal weekly quantity allowed on for a particular origin-destination combination.  e.g., UK to DE normally we are only allowed to send 8 u...
  • ImkeF's avatar
    3 years ago

    Hi dapperscavenger ,
    I would start with table3 and add a custom column where you reference table1.
    That will return everything from table1 for each week.
    Then join table2 to it based on "From", "To", and "week".

    Then add a custom column with the condition that if the value of the expansion from table2 is null, then take the expansion from table1, else take expansion from table2.