ACCESS SQL 如何先计算总数再算平均数?我把SUM和AVG一起用的时候,显示在表达式中不能有聚合函数
SELECTCategoryRef,AVG(SUM(NumShares+NumFacebook))ASAverageSharesFROMNewsGROUPBYCatego...
SELECT CategoryRef, AVG(SUM(NumShares+NumFacebook)) AS AverageShares
FROM News
GROUP BY CategoryRef
ORDER BY AVG(NumShares) DESC; 展开
FROM News
GROUP BY CategoryRef
ORDER BY AVG(NumShares) DESC; 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询