Skip to content
Advertisement

Join on same column multiple times

how do I join on the same column multiple times, one of the tables is a configuration table with values and other is the data table.

T1:

T2 (Config table):

I need to display the code and its relevant description for each ID.

Expected Output:

This is what I have tried so far, however, it is not giving me the desired output:

How can I achieve this? Sorry if my question is confusing, I can provide more details if needed.

Advertisement

Answer

That’s multiple outer join with the t2 table:

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement