题解 | #获取每个部门中当前员工薪水最高的相关信息#
统计出当前各个title类型对应的员工当前薪水对应的平均工资
http://www.nowcoder.com/practice/c8652e9e5a354b879e2a244200f1eaae
select
dept_emp.dept_no,dept_emp.emp_no,
max(salaries.salary)maxSalary
from
dept_emp
left join
salaries
on
dept_emp.emp_no=salaries.emp_no
group by dept_emp.dept_no
order by dept_emp.dept_no ASC