Saint Nick
Lifer
We have two systems, Old IDs and New IDs. I also have a conversion table on the server that says certain Old IDs = New IDs. I am trying to update the old with the new through SQL.
Here is the code I run:
It gives me the error Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
What exactly am I doing wrong? This makes the most sense to me and it is what I keep coming back to. I somehow got it to work yesterday, but now it is not.
Here is the code I run:
Code:
UPDATE DVMS_FNET_Tran_TEST
SET P8_Doc_ID = (
SELECT NuID
FROM DVMS_FNET_Tran_TEST as a, FileNet_ID_Conv as b
WHERE a.Pan_Doc_ID = b.OldID
)
It gives me the error Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
What exactly am I doing wrong? This makes the most sense to me and it is what I keep coming back to. I somehow got it to work yesterday, but now it is not.
Last edited: