If I have a table:
CREATE TABLE EMP
(
ID int
, NAME varchar(50)
, TITLE varchar (20)
);
GO
INSERT INTO EMP
VALUES
(1, 'Joe Cool', 'CEO')
, (1, 'Joe Cool', 'CEO')
. (2. . 'Snoopy', .'pet');
GO
SELECT ID, NAME, TITLE
FROM EMP
GROUP BY ID, NAME, TITLE
HAVING COUNT(*)>1;