题解 | #统计出当前各个title类型对应的员工当前薪水对应的平均工资#

统计出当前各个title类型对应的员工当前薪水对应的平均工资

http://www.nowcoder.com/practice/c8652e9e5a354b879e2a244200f1eaae


select title , avg(s.salary)
from
(select title , 
(select salary from salaries s where s.emp_no = t.emp_no) salary
 
 from titles t) s
 group by title
全部评论

相关推荐

点赞 评论 收藏
分享
想按时下班的我在等offer:我投测试也是这个情况,不知道咋办了
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务