平均值 求差

 select a.sa-b.sb from 
       (select avg(s_salary) sa from salary where dep='健身部') a,
       (select avg(s_salary) sb from salary where dep='曲藝部') b 

so esay.

發佈了29 篇原創文章 · 獲贊 7 · 訪問量 19萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章