Has anyone any idea how I could change the query belwo to select only rows where tb2.EId exists more than once and the Tdate is nullDECLARE @Username varchar(10)SET @UserName = 'PAY'SELECT NoNumber, NpNumber, Fname, Sname, DOB, ISNULL(Address1,'') As HomeAddress, ISNULL(AddressCode,'') As PostCode, PNumber, TDate FROM dbo.t_Table1 tb1 INNER JOIN t_Table2 tb2 ON tb1.Id = tb2.EIdINNER JOIN t_Map Mps ON Mps.EmpId = tb2.EmpIdWHERE Mps.Username = @UsernameORDER BY NoNumber ASC