摘要: 1978. 上级经理已离职的公司员工 - 力扣(LeetCode) select t.employee_id from ( select employee_id, manager_id, salary from Employees where salary < 30000 AND manager_i 阅读全文
posted @ 2025-07-13 19:15 arroa 阅读(8) 评论(0) 推荐(0)
摘要: 1667. 修复表中的名字 - 力扣(LeetCode) select user_id, concat(upper(left(name,1)),lower(right(name,length(name)-1))) as name from Users order by user_id left(na 阅读全文
posted @ 2025-07-13 16:13 arroa 阅读(14) 评论(0) 推荐(0)
摘要: 1731. 每位经理的下属员工数量 - 力扣(LeetCode) select e2.employee_id, e2.name, COUNT(e1.employee_id) AS reports_count, round(avg(e1.age),0) as average_age FROM Empl 阅读全文
posted @ 2025-07-13 12:59 arroa 阅读(10) 评论(0) 推荐(0)
摘要: 2356. 每位教师所教授的科目种类的数量 - 力扣(LeetCode) select teacher_id, count(distinct subject_id) as cnt from Teacher GROUP BY teacher_id 按照老师id分类 1141. 查询近30天活跃用户数 阅读全文
posted @ 2025-07-13 09:37 arroa 阅读(9) 评论(0) 推荐(0)