Hi,
I have 2 tables one with a lot of records(table 1), and a second(table 2) with similar data but with far fewer records.
On a regular basis i need to add a marker to records in the larger table where there is a corresponding record in the smaller table. For example this could be an email address.
So if email address exists in the smaller table(table 2) mark this in the larger table(table 1)
Now, i know this is a bit vague but the actual data isnt relevant nor is table/column names. What im looking for is ideas / suggestions as the most efficient way to do this.
Do i run a procedure that....
A) checks a record in one table and then looks for a corresponding record in the other? Then marks this record if it has a match. Which way around is best?
B) Do something with temporary tables?
c) something totaly different? Please give pointers.
I hope this makes sense, and i hope you can help.
Thanks!