codice:
select nome,cognome,tipo, group_concat(tipo) as elenco
from tabella
group by nome