sql選擇最低的平均工資

選擇出平均工資最低的部門和平均工資(mysql)mysql select depart,s from  (SELECT depart ,avg(salary) s FROM test1 GROUP BY depart) aa where s=(select min(s) from (SELECT depart ,avg(salary) s FROM test1 GROUP BY depart) a
相關文章
相關標籤/搜索