create view Dep_ MSalary as
select 部门名称,salary.月份,max(sum(salary.工资)) 最高工资,min(sum(salary.工资)) 最低工资
from Employee,Departments,Salary
where Employee.员工ID = Salary.员工ID
and Employee.部门ID = Departments.部门ID
group by 部门名称 ,salary.月份
如果需要限定 月份,则为:
create view Dep_ MSalary as
select 部门名称,max(sum(salary.工资)) 最高工资,min(sum(salary.工资)) 最低工资
from Employee,Departments,Salary
where Employee.员工ID = Salary.员工ID
and Employee.部门ID = Departments.部门ID
and salary.月份 = xxx
group by 部门名称
本文地址: http://www.goggeous.com/20250104/1/1180797
文章来源:天狐定制
版权声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-04 23:00:14职业培训
2025-01-04 23:00:14职业培训
2025-01-04 23:00:13职业培训
2025-01-04 23:00:12职业培训
2025-01-04 23:00:12职业培训
2025-01-04 23:00:11职业培训
2025-01-04 23:00:10职业培训
2025-01-04 23:00:09职业培训
2025-01-04 23:00:00职业培训
2025-01-04 22:59:59职业培训
2024-12-22 13:40职业培训
2024-12-16 04:17职业培训
2024-12-23 12:15职业培训
2025-01-02 09:42职业培训
2024-11-30 16:59职业培训
2024-12-04 04:38职业培训
2024-12-23 06:26职业培训
2024-12-23 05:57职业培训
2024-12-08 03:26职业培训
2024-12-22 13:07职业培训
扫码二维码
获取最新动态