搜索结果
查询Tags标签: 579,共有 3条记录-
【leetcode-sql】569-571、574、577-579
569. 员工薪水中位数 Employee 表包含所有员工。Employee 表有三列:员工Id,公司名和薪水。 +-----+------------+--------+ |Id | Company | Salary | +-----+------------+--------+ |1 | A | 2341 | |2 | A | 341 | |3 | A …
2021/9/30 19:14:55 人评论 次浏览 -
【leetcode-sql】569-571、574、577-579
569. 员工薪水中位数 Employee 表包含所有员工。Employee 表有三列:员工Id,公司名和薪水。 +-----+------------+--------+ |Id | Company | Salary | +-----+------------+--------+ |1 | A | 2341 | |2 | A | 341 | |3 | A …
2021/9/30 19:14:55 人评论 次浏览 -
LeetCode 【困难】数据库-第579:查询员工的累计薪水
题目数据1.薪资累加、月份排名(降序) select *, sum(salary) over(partition by id order by month ) sum_salary, # order by记得排序,不然都是总和。 rank() over(partition by id order by `month` desc) rks # 按月份排序,跳跃 from employee2.去掉最近一个月的,…
2021/7/2 19:22:28 人评论 次浏览