Suppose I have a table
id value ------ --------- 10 123 10 422 11 441 11 986
You can use this query :
SELECT * from table where id in ( SELECT id FROM table group by id having count(id) > 1 )