查询每门课程前两名的学生信息
gId sName sub grade----------- ------------ ------- -----------1 Tom java 802 Marry java 853 Jim java 1004 Tom sql 985 Marry sql 856 Jim sql 997 Tom Html 608 Marry... 展开
其他答案
做个标记... select * from stu s1 where 2>(select count(*) from stu as s2 where s2.sub=s1.sub and s2.grade>s1.grade) order by s1.sub asc
2010-11-05 10:12
来自北京市
赞(1)点赞赞(1)举报
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。




