Perfect Thanks!
Perfect! Just the start I needed! Here is the working code I got to work in case anyone else should need it:
update tablea
set tablea.fielda = X.newfield from
(select t2.oldfield, t2.newfield from tablea t1
inner join tableb t2
on t1.fielda = t2.oldfield) X
where tablea.fielda = X.oldfield
Thanks!
Rick
User Profile
Collapse
-
UPDATE and SELECT Combination
I have two tables. Table A is the main table I need to update and table B is the update table with the new data. Table B contains only two fields- fielda (also contained in table A for the linking but also is the field that needs changed) and a second field (fieldb) which is the NEW value of fielda that I need to change in TableA. Thus I need a combination UPDATE/SELECT statement to link the two tables togeather to update table A with the new...
No activity results to display
Show More
Leave a comment: