oracle 分組查詢

1,在Scott模式下,建立一個視圖,要求可以查詢每一個部門的工資狀況web create or replace view emp_view_complex as select deptno 部門編號,max(sal) 最高工資, min(sal) 最低工資,avg(sal) 平均工資 from emp group by deptno; 查詢語句svg select * from emp_view
相關文章
相關標籤/搜索