I get the "Enter Parameter Value" popup when I run the below (asking for November.MPXN)
UPDATE Master SET [MPXN] = November.MPXN, [Clarification Text] = November.[Clarification Text]
WHERE (EXISTS(SELECT 1 FROM November AS November
WHERE [November.Case] = [Master.Case]));
I assume it isn't pulling the date for November.MPXN for some reason, I would have though it's pretty obvious that it's in the November table but must be something wrong with the query, can anyone help me please?
Maybe you got an answer already but November
is not in the same scope as the Update
part of the query. It is nested inside your exists
statement. You need a join to bring the November
data in with the Master
data.
UPDATE Master M
INNER JOIN November N
On N.[November.Case] = M.[Master.Case]
SET [MPXN] = November.MPXN
, [Clarification Text] = November.[Clarification Text]
I bet you were using Exists
though because the records in Master and November
are not 1 to 1 in which case you'll need to have some way to narrowing it down.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.