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,姓名
时间: 2025-01-14 07:43:33
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,姓名