これを行うことができます(フィドル )
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
これを行うことができます(フィドル )
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