20200 在 2023/4/8 10:02:09 说到:  
  请将1号课,2号课,3号课的最高成绩在同一行显示出来,即格式要求:1号课 2号课 3号课

这条发言的回复:

发言人:2020014433 发言时间:2023/4/8 10:07:27 select max(grade) as 1号课,(select max(grade) from sc where cno='2') as 2号课,(select max(grade) from sc where cno='3') as 3号课 from sc where cno='1'
发言人:2020014439 发言时间:2023/4/8 10:02:54 select distinct tname,tglass,tsdept,cname from course,teacher where teacher.tno=course.tno and tglass='副教授'and tsdept='计算机系'

版权所有:计算机应用研究所
Copyright (C)2016  All rights reserved.
TEL:-******** Email:yyh@zwu.edu.cn