UPDATE dataflair_emp1 SET salary=35000 WHERE emp_id = ( SELECT emp_id FROM dataflair_emp1 WHERE post='Sr.Manager'); select * from dataflair_emp1;