Re: Duplicates

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17745
interpreted = N
texte = >For the 2 of you who haven't added me to your kill file... >Does anyone have a good way for detecting records that have a duplicate >value in one field, then noting this, or deleting it?I think you'd have to create a temporary database that stores each word from that field in a separate record, then search that temp db for all the records with the duplicate word you're looking for, then replace the value of that word with a blank value, then search and retrieve all the records of this temp db file and put the results back into the field of the original db record replacing the original field values.Of course, this assumes that you're seeking a specific word and not just any duplicates, because I'm not sure there's a good way of doing this if your goal is to seek out ANY duplicate words. So maybe it's going to be easier to prevent the duplicates from being entered in the first place.What's the purpose of this effort? Are you trying to create a keyword field that doesn't have duplicate values in it? Or is this for some other purpose entirely?Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] prevent database duplicates (Stephen Braun 2019)
  2. Re: [WebDNA] prevent database duplicates (Stuart Tremain 2019)
  3. Re: [WebDNA] prevent database duplicates (Alex Mccombie 2019)
  4. [WebDNA] prevent database duplicates (Stephen Braun 2019)
  5. Re: [WebDNA] [sendmail] random duplicates (Donovan Brooke 2010)
  6. Re: [WebDNA] [sendmail] random duplicates (Steve Raslevich - Northern Sound 2010)
  7. Re: [WebDNA] [sendmail] random duplicates (Tom Duke 2010)
  8. Re: [WebDNA] [sendmail] random duplicates (Stuart Tremain 2010)
  9. Re: [WebDNA] [sendmail] random duplicates (Steve Raslevich - Northern Sound 2010)
  10. Re: [WebDNA] [sendmail] random duplicates (Tom Duke 2010)
  11. [WebDNA] [sendmail] random duplicates (Steve Raslevich - Northern Sound 2010)
  12. Re: Find Duplicates in Cart (John Peacock 2001)
  13. Re: Find Duplicates in Cart (Clint Davis 2001)
  14. Re: Find Duplicates in Cart (John Peacock 2001)
  15. Find Duplicates in Cart (Clint Davis 2001)
  16. How to find duplicates - With code samples (Brian B. Burton 2000)
  17. Re: Deleting duplicates from a db (Matt Helbing 2000)
  18. Re: Deleting duplicates from a db (Michael O Shea 2000)
  19. Deleting duplicates from a db (Will Starck 2000)
  20. Re: WHY SO MANY DUPLICATES? (Martin Bech 1999)
  21. WHY SO MANY DUPLICATES? (The Mooseman 1999)
  22. WHY SO MANY DUPLICATES? (The Mooseman 1999)
  23. Re: Duplicates (Kenneth Grome 1998)
  24. Re: Duplicates (Brian B. Burton 1998)
  25. Re: Duplicates (Dave MacLeay 1998)
  26. Re: Duplicates (Brian B. Burton 1998)
  27. Re: Duplicates (Kenneth Grome 1998)
  28. Re: Duplicates (Peter Ostry 1998)
  29. Re: Duplicates (Brian B. Burton 1998)
  30. Re: Duplicates (Kenneth Grome 1998)
  31. Duplicates (Brian B. Burton 1998)
>For the 2 of you who haven't added me to your kill file... >Does anyone have a good way for detecting records that have a duplicate >value in one field, then noting this, or deleting it?I think you'd have to create a temporary database that stores each word from that field in a separate record, then search that temp db for all the records with the duplicate word you're looking for, then replace the value of that word with a blank value, then search and retrieve all the records of this temp db file and put the results back into the field of the original db record replacing the original field values.Of course, this assumes that you're seeking a specific word and not just any duplicates, because I'm not sure there's a good way of doing this if your goal is to seek out ANY duplicate words. So maybe it's going to be easier to prevent the duplicates from being entered in the first place.What's the purpose of this effort? Are you trying to create a keyword field that doesn't have duplicate values in it? Or is this for some other purpose entirely?Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Sorting error (1997) shownext not showing next...still r2 (1997) [WebDNA] WebDNA staging server (2008) Timer Values on [redirect] (1998) F2 to F3 rocky transition (1997) QuitFeedback & DBNotOpened errors (1997) Date Calulation (1997) ShowIf variables (1997) WebCat for Unix?? (1997) Appending current [date] to a database (1997) Logging purchases (1997) Security stumper [mildly OT] (2004) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Make sure I understand this??? (1997) b12 cannot limit records returned and more. (1997) Include vs. lookup? (1998) [WebDNA] Now: Listfields does not work with tables - Was: [OT] MySQL Users (2011) Credit Card Number checking (1997) Ship Cost Calculated via Subtotal (1998) Multiple prices (1997)