SQL 练习36
- 查询不同课程成绩相同的学生的学生编号、课程编号、学生成绩
select a.cid, a.sid, a.score from sc as a,sc as b
WHERE a.sid = b.sid
and a.cid != b.cid
and a.score = b.score
group by a.cid, a.sid,a.score
本文来自博客园,作者:弩哥++,转载请注明原文链接:https://www.cnblogs.com/bangbangzoutianya/p/15168015.html