update hrsa_salary_sob_item set item_hide = 0;

update hrsa_salary_sob_item_group set item_hide = 0;

UPDATE hrsa_salary_sob_item a SET item_hide = (SELECT b.item_hide FROM hrsa_salary_item_hide b WHERE a.salary_item_id =  b.salary_item_id  and a.salary_sob_id = b.salary_sob_id and a.delete_type=0 and b.delete_type=0  ) WHERE  EXISTS (SELECT 1 FROM hrsa_salary_item_hide b WHERE b.item_hide = a.item_hide);

UPDATE hrsa_salary_sob_item_group a SET item_hide = (SELECT b.item_hide FROM hrsa_salary_item_hide b WHERE a.id =  b.salary_item_id  and a.salary_sob_id = b.salary_sob_id and a.delete_type=0 and b.delete_type=0  ) WHERE  EXISTS (SELECT 1 FROM hrsa_salary_item_hide b WHERE b.item_hide = a.item_hide);