I want to filter all the duplicate Name , dob , gender and postal code but view all the fields
AND filter by c_source = "SAP"
Here is the code :
Code:
SELECT *
FROM CrossSystemData
WHERE (((CrossSystemData.NAME) In (SELECT [NAME] FROM [CrossSystemData] As Tmp GROUP BY [NAME],[DOB],[GENDER],[POSTAL_CODE] HAVING Count(*)>1 And [DOB] = [CrossSystemData].[DOB] And [GENDER] = [CrossSystemData].[GENDER] And [POSTAL_CODE] = [CrossSystemData].[POSTAL_CODE])))
ORDER BY CrossSystemData.NAME, CrossSystemData.DOB, CrossSystemData.GENDER, CrossSystemData.POSTAL_CODE;
Any idea on how to do this?
Thanks in advance