I'm using SQL Server and I want to update 2 values (ActionNumber and NumberOfPeople) from InterventionsImage where the property NumberOfInterverntion have same value from both ExecuteInterventions and InterventionsImage tables.
Using the logic of SQL update sintax i tried something like this query:
UPDATE ExecuteInterventions ei INNER JOIN InterventionsImage ii
ON ei.NumberOfInterverntion = ii.NumberOfIntervention
SET ii.ActionNumber = 1 and SET ii.NumberOfPeople = 233
WHERE ei.ID = 153 and ii.ID = 199687
should update the ActionNumber and NumberOfIntervention values from InterventionsImage table. But of course that does not worked. Can someone figure me out how can i update those values?