思路:
连接两张表,根据入职时间出查找工资
代码:
select e.emp_no,s.salary from employees e join salaries s on
e.emp_no=s.emp_no where s.from_date=e.hire_date order by e.emp_no desc;
思路:
连接两张表,根据入职时间出查找工资
代码:
select e.emp_no,s.salary from employees e join salaries s on
e.emp_no=s.emp_no where s.from_date=e.hire_date order by e.emp_no desc;
本文标题:牛客网6查找所有员工入职时候的薪水情况
本文链接:https://www.haomeiwen.com/subject/zsbahctx.html
网友评论