标签:
SELECT 姓名=(SELECT MName FROM dbo.Member WHERE MID = dbo.Score.MID), 平均分=(SELECT AVG(Score) FROM dbo.Score) FROM dbo.Score GROUP BY MID ORDER BY 平均分 DESC,姓名
SQL AVG
原文地址:http://www.cnblogs.com/linhongquan/p/5517465.html