A starting point:
SELECT EMPNO, Firstname, Secondname
FROM yourTable A
WHERE (SELECT Count(*) FROM yourTable B WHERE B.Secondname=A.Secondname)>1;
Another way:
SELECT A.EMPNO, A.Firstname, A.Secondname
FROM yourTable A INNER JOIN (
SELECT Secondname FROM yourTable GROUP BY Secondname HAVING Count(*)>1
) B ON A.Secondname=B.Secondname;
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244