Skip to content
Advertisement

Postgresql : Query were each join result is a line

I got a database structure with three tables. On table containing some ids and two table containing the same row and a foreign key on the first table :

How to get a result looking like this (a kind of left join were each result is displayed in lines instead of in additional columns in the result):

Advertisement

Answer

I think you want union all:

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