Is this homework or a real query? If it is real, what if there are 3 people or more with the same birthday? This will get you there, but you need to consider what to do with the reversed duplicates.DECLARE @A TABLE(EmpNo INT, FirstNAme VARCHAR(50), LastName VARCHAR(50), BirthDate DATE)INSERT @A SELECT 1, 'Bill', 'Smith', '19740103' UNION ALLSELECT 2, 'Mary', 'Jones', '19600518' UNION ALLSELECT 3, 'Marvin', 'Barnes', '19740103' UNION ALLSELECT 4, 'Bart', 'York', '19600518'SELECT t1.EmpNo ,t1.LastName ,t1.FirstName ,t1.BirthDate ,t2.EmpNo ,t2.LastName ,t2.FirstName ,t2.BirthDate FROM @A t1 INNER JOIN ( SELECT EmpNo ,LastName ,FirstName ,BirthDate FROM @A ) t2 ON t2.BirthDate = t1.BirthDate WHERE t2.EmpNo != t1.EmpNo
===http://www.ElementalSQL.com/