The below query is working fine but not updating records in the database. In my database there is three records available for update, but it's not updating.
UPDATE vgm_details VD SET VD.job_id = ( select S.job_id from stuffings S JOIN vgm V ON S.booking_id = V.booking_id WHERE S.container_no = VD.container_no) where VD.job_id = 0;
i have attached screenshot of vgm_details table.
