当前位置:Gxlcms > 数据库问题 > oracle-统计员工x

oracle-统计员工x

时间:2021-07-01 10:21:17 帮助过:22人阅读

技术分享

 

1、

SELECT
e.depid,avg(s.bonussalary+s.basesalary) AS avgsal from employ e,salary s
where e.employId=s.employId GROUP BY e.depid
ORDER BY avgsal asc

注意顺序 select from where group by oder by

2、

SELECT * from employ e where e.ename like ‘王%‘

oracle-统计员工x

标签:asc   注意   group by   from   ase   员工   rom   acl   alt   

人气教程排行