SELECT NUMBER, NAME FROM T_SICK_NAME as a where exists ( SELECT 1 FROM (select NAME from T_SICK_NAME group by NAME having count(*) > 1 ) as b where a.NAME = b.NAME ) order by NAME ,NUMBER