se non ho capito male

select * from nome_tabella group by nome;

ciao