SQL(Need to print all the duplicate value ID's) : Empid----Name
  1        aa
  2        bb
  3        cc
  4        aa
  5        bb

I need to get output  to print EmpId number for which name's are repeated
output Required: 1,2,4,5.

Thanks in advance