Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Appending Field and data into Table

Status
Not open for further replies.

papafredo

Technical User
Nov 4, 2001
1
US
I have two tables with 3 fields - first name, last name, email address. Table 1 is the clean list but has no data under "last name". Table 2 is the master list which has data in the "last name" field. How do I append the "last name" data in Table 2 into the "last name" field in table 1?
 
I'll assume that email address is the key field on both tables. If so then you can do ...

update t1
set t1.lastname = t2.lastname
from table1 t1, table2 t2
where t1.email_address = t2.email_address

Greg.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top