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,姓名
时间: 2024-11-03 01:56:45
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,姓名