I have an address table that periodically needs to be updated with new addresses from a table that is given to me once a month.
What I need is a way to compare the addresses in the new table to what is existing in the "Master" table. If there is no match then flag that new record to be appended to the master table.
My first problem is that the new addresses are sent to me with all the addresses listed (current and new). My second problem is that the file comes from an OLD (30 years) system and there is no single primary key. What makes the record considered unique is the street number, street name and ward.
The address list isn't very big, just 100,000 addresses, so what i'm looking to do is compare the two tables using a stored procedure and thats where I need help!
Has anyone done anything similar?
TIA
What I need is a way to compare the addresses in the new table to what is existing in the "Master" table. If there is no match then flag that new record to be appended to the master table.
My first problem is that the new addresses are sent to me with all the addresses listed (current and new). My second problem is that the file comes from an OLD (30 years) system and there is no single primary key. What makes the record considered unique is the street number, street name and ward.
The address list isn't very big, just 100,000 addresses, so what i'm looking to do is compare the two tables using a stored procedure and thats where I need help!
Has anyone done anything similar?
TIA