SQL select 查詢語句練習題

1.求出每一個崗位的總工資、平均工資、最高工資、最低工資以及人數 select job, sum(sal), avg(sal), max(sal), min(sal), count(*) from emp group by job; 2.按部門統計工資大於1000的人數 select deptno, count(*) from emp where sal > 1000 group by deptn
相關文章
相關標籤/搜索