Finding duplicate values using a self-join relationshipThis procedure identifies “extra” instances of duplicated records. You specify the criteria that determine which is the primary record.This procedure uses a self-join relationship and a calculation field referencing the relationship to determine which records are duplicates.
2. Identify a field that determines a unique entity in your file.For example, in a Contacts database, the Last Name field is probably not a good choice, because you might have several people with the same last name. Social Security Number is a better choice. You can also create a calculation field (returning a text result) that combines data in several fields to make a unique identifier. An example formula is First Name & Last Name & Phone Number.Use your chosen identifying field as the match field in both tables in the relationship. For more information, see About self-joining relationships.The primary record is the first matching record according to the sort order defined in the relationship.
• Counter, a text field with an auto-entered serial number (select Serial number and accept the default values for Next and Increment by).
5.
6. Click the new Counter field, choose Records menu > Replace Field Contents, and Replace with serial numbers. Again, accept the default values. Select Update serial number in Entry Options, and click Replace.This will assign a serial number to all existing records in your database. Serial numbers will automatically be entered in new records.
7. Perform a find for Duplicate in the Check Duplicates field.The first record in any series of duplicates now holds the value Unique in the Check Duplicates field, and all duplicate records within the same series are marked Duplicate.Important Records with no value in the match field will be flagged as duplicates. Once set up as above, this system will identify duplicate records automatically as they are created.