| re: Fuzzy Duplicates
That's a common problem with all databases and it would be great to prevent users from entering duplicates. However, in the real world, they're going to happen just as you described.
You could potentially write a script to do what you want by going through the entire database looking at one record at a time, storing it in a variable and then comparing it to all of the other descriptions with the LIKE construct.
There is probably a better way. Hopefully someone here will be able to help you better than I can.
My preference would be to force the user to search the database before entering a new description thereby cutting down the duplicates. Write the code so the user enters the description, but instead of updating the database right away, search for LIKE descriptions and display those to the user first. Then you can give them the option to accept one of the descriptions found, add a new description as typed, or cancel the transaction.
|