如何在不知道员工ID的情况下在Employee表中查找重复记录

时间:2015-07-21 05:26:46

标签: java

emp_id  emp_name emp_age
------------------------
001  -  Amar   - 23
------------------------
002  -Amarjeet - 24
------------------------
001  - kumar   - 25

1 个答案:

答案 0 :(得分:2)

SELECT emp_id  FROM EMPTable 
GROUP BY emp_id
HAVING COUNT(*) > 1