Remove duplicates and update IDs linked to nonduplicates
- by colinr23
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!