This shouldn't be too difficult but it's not working for me. Hopefully someone can help!
I have two tables:
Table1
Name Number UserID
James Jimmy E1255 <NULL>
Jones Tom E8544 <NULL>
Loeb Lisa E9988 <NULL>
Table2
UserID FirstName LastName
12 Jimmy James
55 Tom Jones
49 Lisa Loeb
I need to updat Table1.UserID with Table2.UserID, matching Table1.Name to Table2.LastName + ' ' + Table2.FirstName.
I'm assuming a nested query, but when I did it, the subquery returned more than 1 value. Any idea how to build this?
I have two tables:
Table1
Name Number UserID
James Jimmy E1255 <NULL>
Jones Tom E8544 <NULL>
Loeb Lisa E9988 <NULL>
Table2
UserID FirstName LastName
12 Jimmy James
55 Tom Jones
49 Lisa Loeb
I need to updat Table1.UserID with Table2.UserID, matching Table1.Name to Table2.LastName + ' ' + Table2.FirstName.
I'm assuming a nested query, but when I did it, the subquery returned more than 1 value. Any idea how to build this?