I am trying to build an output as such:
Name source source source
Tim Other TV Radio
Where I want to combine a Person table and a Source table:
Person
ID Name
1 Tim
Source
ID Name
1 Other
2 TV
3 Radio
Person_Source
p_id s_id
1 1
1 2
I have a query that builds out each source for time and outputs in multiple lines. I’m looking for a single result in the result set
select source.name
from person left join person_source
on person_source.person_source_id = person.id join source
on source.id = person_source.source_id
You could add a DISTINCT to your query: