I have a Find Duplicates query that identifies people with duplicate names in a table. When the initial set of data are imported to the table, this enables the user to check whether the same person appears twice; however, in some cases the duplicate names do in fact relate to different people, and these legitimate duplicates are flagged as True/Yes in a YesNo field.
The table has new data appended from another source every month, and I want to identify whether any of the imported records equate directly to existing records in the database. The Find Duplicates query will pick out all duplicates, but as the list grows I would prefer not to show pairs of names from the original dataset that have already been flagged.
However, a new record from the appended data might relate to an already-flagged original. I would therfore like to modify the Find Duplicates SQL to add the condition that at least one of the duplicate records should have the YesNo field set to False/No (if all records in a duplicate grouping are set to True/Yes, it would mean the records have already been checked and don’t need to be checked again).
Of course, some duplications will be entirely new – ie both will have their YesNo fields set to False/No.
This is an area of SQL I haven’t previously explored – any suggestions?
(I know I can create a function to do this, but feel that an SQL solution would work faster.)
Thanks and regards
Alison C