I have two tables, a contacts table and an addresses table. The addresses table contains a contact id, and 4 address lines. I wish to update the contacts table with the information from the addresses table. For simplicity's sake let the tables be as follows:
addresses(
. contact int not null,
. address1 varchar(32) not null,
. address2 varchar(32) not null
)
contacts(
. id int primary key,
. addr1 varchar(32) not null,
. addr2 varchar(32) not null
)
How (int tsql) do I update the contacts table from the addresses table?
Thanks.