MySQL 查询每类文化程度积分最高的人
SELECT p.name, p.education_code FROM people p INNER JOIN (SELECT education_code, MAX(score) AS max_score FROM people GROUP BY education_code) t ON p.education_code = t.education_code AND p.score = t.max_score ORDER BY p.education_code ASC;
AI 优化版
原文地址:https://www.cveoy.top/t/topic/ogJp 著作权归作者所有。请勿转载和采集!