Could someone please help me with the following?
I have a horse pedigree database where some data has been duplicated. I can currently find and list the duplicate rows matching one criteria with the below (I want the individual rows listed rather than just a 'number of duplicates' column as per the access query wizard).
SELECT [Horse Sub Table].[Horse Name], [Horse Sub Table].Sire
FROM [Horse Sub Table]
WHERE ((([Horse Sub Table].[Horse Name]) In (SELECT [Horse Name] FROM [Horse Sub Table] As Tmp GROUP BY [Horse Name] HAVING Count(*)>1 )))
ORDER BY [Horse Sub Table].[Horse Name];
But to speed things up I only want to show results when two criteria match (both sire and horse name, currently it is only horse name).
Stumping me when trying to modify current query though!?
Thanks in advance
I have a horse pedigree database where some data has been duplicated. I can currently find and list the duplicate rows matching one criteria with the below (I want the individual rows listed rather than just a 'number of duplicates' column as per the access query wizard).
SELECT [Horse Sub Table].[Horse Name], [Horse Sub Table].Sire
FROM [Horse Sub Table]
WHERE ((([Horse Sub Table].[Horse Name]) In (SELECT [Horse Name] FROM [Horse Sub Table] As Tmp GROUP BY [Horse Name] HAVING Count(*)>1 )))
ORDER BY [Horse Sub Table].[Horse Name];
But to speed things up I only want to show results when two criteria match (both sire and horse name, currently it is only horse name).
Stumping me when trying to modify current query though!?
Thanks in advance