This works fine:
UPDATE users
SET group_id = (SELECT Prov_Current_Address_City FROM users WHERE scope IS NULL AND health_facility_id = 10)
WHERE scope IN ('MHO', 'Mayor', 'Doctor') AND health_facility_id = 10;
With this i get an ERROR:
UPDATE users
SET group_id = (SELECT Prov_Current_Address_City FROM users WHERE scope IS NULL AND health_facility_id = (SELECT Prov_Current_Address_City FROM users WHERE scope IS NULL))
WHERE scope IN ('MHO', 'Mayor', 'Doctor') AND health_facility_id = (SELECT health_facility_id FROM users WHERE scope IS NULL);
but this
(SELECT Prov_Current_Address_City FROM users WHERE scope IS NULL)
query is returning many data. What I want to achieve is to update multiple rows in Column group_id. see this image https://i.imgur.com/aNSsWie.png