Reputation: 7318
UPDATE d
set d.tSynchronized = 1
from TImageRaw d
inner join TPatientRaw f
on f.tPatCulIntPatIDPk = d.tImgCulIntPatIDFk
The code above is not work in SQL Server, can someone point me the right direction ?
Upvotes: 0
Views: 360
Reputation: 58615
Your UPDATE
structure looks fine at first glance. Since you have not stated the error, here are some probable causes:
f.tPatCulIntPatIDPk
and d.tImgCulIntPatIDFk
do not have compatible typesd.tSynchronized
is not a numeric typed fieldUpvotes: 2