77问答网
所有问题
如何用SQL查询“假若统一学生不同课程的成绩相同,查询该学生的学号、所选课程的课
如题所述
举报该问题
推荐答案 2009-11-08
是同一学生不同课程的成绩相同吧,可以使用自连接实现:
select t1.xuehao,t1.kecheng,t1.chengji from tablename t1 join tablename t2 on t1.xuehao = t2.xuehao where t1.chengji=t2.chengji and t1.xuehao <> t2.xuehao
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://77.wendadaohang.com/zd/GYW3p8IIv.html
其他回答
第1个回答 2019-08-09
你好!
汗
lz山大的
还是管院的
打字不易,采纳哦!
第2个回答 2009-11-10
汗 lz山大的 还是管院的
相似回答
大家正在搜
相关问题
用SQL查询每个学生的所选课程的最高成绩 要求列出学号,姓名...
查询至少选了“张海”所选的全部课程的学生的学号、所在系和所选...
嵌套子查询(SQL Ser)1、查询与10060101学生选...
SQL 数据查询 查询选择了同一门课程的两个不同学生的学号及...
创建一个存储过程,给定某学生学号,要求查询出该学生的姓名,所...
关于SQL语句的问题 查询所有信息系(数据为'IS')学生所...
用SQL查询在教学成绩管理数据库中查询学生学号,姓名,课程名...
用SQL语句查询所有学生(包括未选课的学生)的学号、姓名(S...