Remove duplicates and update IDs linked to nonduplicates
Posted
by colinr23
on Stack Overflow
See other posts from Stack Overflow
or by colinr23
Published on 2010-04-23T20:33:38Z
Indexed on
2010/04/24
16:43 UTC
Read the original article
Hit count: 386
I have two tables, tableA and tableB, linked through a locationID.
TableA has descriptive survey info with each record from a different time (ie unique), while TableB has purely locational information. However, there are lots of duplicates in TableB, yet each has a unique locationID, which has an entry in TableA. I've found plenty posts about removing duplicates from TableB, but how can I update the locationIDs in TableA so they are linked to the unique locations in TableB once duplicates are removed...
Help much appreciated!
© Stack Overflow or respective owner