I am trying to update multiple values ββfrom another table with multiple two columns from two tables based on date and character
UPDATE wpcurrate
SET usd = (SELECT (mo.price * wpcurrate.midprice) as USD
FROM mo, wpcurrate
WHERE wpcurrate.symbol = mo.symbol)
WHERE mo.curdatetime BETWEEN '2015-07-01 12:00:00 AM' AND '2015-07-31 11:59:59 PM'
The following error is displayed:
Msg 4104, Level 16, State 1, Line 1
The multipart identifier "mo.curdatetime" cannot be linked.Msg 4104, Level 16, State 1, Line 1
The multipart identifier "mo.curdatetime" cannot be linked.
+3
source to share
2 answers