题解 | #汇总各个部门当前员工的title类型的分配数目#

汇总各个部门当前员工的title类型的分配数目

http://www.nowcoder.com/practice/4bcb6a7d3e39423291d2f7bdbbff87f8

select de.dept_no, d.dept_name, t.title, count(*) as count from departments d, dept_emp de, titles t where de.dept_no = d.dept_no and de.emp_no = t.emp_no group by d.dept_name, t.title order by de.dept_no, t.title;

全部评论

相关推荐

下个早班:秒挂就是不缺人
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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