Want to update a table record (computer) where computer_name match a record in another table (flowbot) where computer_name is a foreign key.
I can make the inner join function and update function work separately. Can't figure out how to combine them. Get this error:
could not determine data type of parameter $1
code:
update computer
set latest_sw_ver = {{AddNewServiceRecordForm.data.sw_update_to}}
where computer.computer_name in (
select computer.computer_name
from computer
INNER JOIN flowbot ON computer.computer_name = flowbot.computer_name
where flowbot.robot_id = {{AddNewServiceRecordForm.data.flowbot_id}});
Hi Tess
Yes got it working thank you. Replaced {{}} with values. Worked. And reinserted original code which now also works. Never understood what was different.