问一道关于mysql的一道题目

图片说明
这个第三题该怎么做啊做不来在线deng图片说明
这个是数据库

select * from employees t1 left join on salary t2 on t1.number = t2.no

应该还有一个部门表,你没给出来

select * from
(select t2.部门表名字字段 , count(1) sl from employees t1
join 部门表 t2 on t1.no = t2.部门表编号
group by t1.no having )t3 where t3.sl > 2