Skip to content
Advertisement

Custom SQL response (JOIN TABLE)

I have two tables, table1 and table2

I want to link the two tables with the id, by grouping the information in one and the same answer.

table1:

table2:

I want this output:

How Can i have this result ?

Advertisement

Answer

You can use two LEFT JOINs, as in:

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