I have a situation with two linked tables. I need to move a column from table A to column B (of course, only for certain records).
Here is one of my first attempts.
Here is one of my first attempts.
Code:
Update UserDefinedFields
Set UDFVCSD2 = (Select Buyer From OeorderHeader),
UDFVCSD3 = (Select CustomerPoNo From OeorderHeader)
Where TableName = "OeorderHeader" AND RowId In (Select RowPointer From OeorderHeader);
[\code]
The error says the subqueries return more than one value, which makes sense; however, I don't know how to make them return the apporpriate value.
Can one copy a column from one table to another with an update query? If not, do I need to use a cursor?