鍍金池/ 問答/Java  Python  數(shù)據(jù)庫/ oracle數(shù)據(jù)庫count() 排序問題

oracle數(shù)據(jù)庫count() 排序問題

我想以每個人的type 為 1,2,99 的sl 總和來進行降序排列,該怎么處理
clipboard.png

回答
編輯回答
選擇

select sum(sl) as sum from (你上面的sql) group by type order by sum;

2017年3月13日 06:43