Можете да направите това (Fiddle )
select m.*, string_agg(d.name,',') as "person's mother"
from person m left outer join person d on m.name = d.mother
group by m.name,m.mother
Можете да направите това (Fiddle )
select m.*, string_agg(d.name,',') as "person's mother"
from person m left outer join person d on m.name = d.mother
group by m.name,m.mother