sql语句 求其他系中比计算机系某一学生年龄小的学生信息(即求其它系中年龄小于计算机系年龄最大者的学生

2025-03-06 18:17:21
推荐回答(3个)
回答1:

select student_num from student
where age < (select max(age) from student where 系 = '计算机')
and 系 <> '计算机';
欢迎追问。

回答2:

select *
from 学生信息表
where
系<>'计算机系'
and 年龄<
(select max(年龄) from 学生信息表 where 系='计算机系')

回答3:

最好是能给出表结构 这样好回答些 谢谢