select 學(xué)號.AVG(成績) as '平均成績' ?from cj group by 學(xué)號 having avg(成績) >= 90;可不可以不用group by,select 學(xué)號,AVG(成績) as '平均成績' from cj where AVG(成績)>= 90;什么時(shí)候用group by ?
group by 的問題
玩轉(zhuǎn)IT
2016-05-11 11:54:56