I have a table in mysql that has about 60 columns. It has about 50,000 entries in it. For each entry, there are 3 almost duplicate records. By almost duplicate I mean that 57 out of the 60 columns are the same for the 3 rows. I want to be able (with temporary tables and select statements) to only have 1 row for each "almost duplicate" entry. That is, a record is considered a duplicate if and only if all of the fields except the access_date, source_host, and access_time are the same. Also, I want to keep the record (1 out of 3) with the largest access_date.
I am not so much an sql person, and would greatly appreciate any help you can give. I would think that this is doable fairly easily, I just don't know how and need it more quickly than I can learn it
Thanks!
Mike B. As always, I hope that helped!
Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.
I am not so much an sql person, and would greatly appreciate any help you can give. I would think that this is doable fairly easily, I just don't know how and need it more quickly than I can learn it
Thanks!
Mike B. As always, I hope that helped!
Disclaimer:
Beware: Studies have shown that research causes cancer in lab rats.