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

这条发言的回复:

发言人:2020014474 发言时间:2023/4/8 8:50:03 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'
发言人:1 发言时间:2023/4/5 8:52:08 将不同课程求最在然后分别显示

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