Oracle分組函數及分組統計條件限定查詢

1.統計記錄數count() select count(字段名) from 表名; 2.最小值查詢min() 範例:查詢工資最低的員工 select min(sal) from emp; 3.最大值查詢max() 範例:查詢工資最高的員工 select max(sal) from emp; 4.平均值函數 求平均工資: select avg(sal) avgsal from emp; 5.求和 s
相關文章
相關標籤/搜索