题解 |SQL242
将所有获取奖金的员工当前的薪水增加10%
https://www.nowcoder.com/practice/d3b058dcc94147e09352eb76f93b3274
update salaries s left join emp_bonus e on s.emp_no= e.emp_no set salary=salary*1.1 where to_date='9999-01-01' and e.emp_no is not null
将所有获取奖金的员工当前的薪水增加10%
https://www.nowcoder.com/practice/d3b058dcc94147e09352eb76f93b3274
update salaries s left join emp_bonus e on s.emp_no= e.emp_no set salary=salary*1.1 where to_date='9999-01-01' and e.emp_no is not null
相关推荐