select * from tb t where exists( select 1 from tb where name=t.name group by name having count(1)>1 )