查询每个班成绩排名前三的学生信息

xiaoxiao2021-02-28  79

一、问题 二、解决方案

准备数据

查询

select * from t_student t where (select count(1)+1 from t_student where class_id=t.class_id and score>t.score) <= 3详解 总结 利用子查询记录结果,判断是否满足条件
转载请注明原文地址: https://www.6miu.com/read-63198.html

最新回复(0)